Имеется 2 контейнера с одинаковой вкладкой по содержимому. Как мне эти поля вынести в отдельный блок, чтобы не редактировать в 2х местах?
Container::make( 'post_meta', 'Настройки статьи' )
->add_tab( __( 'SEO' ), array(
Field::make( 'text', 'crb_seo_title', 'Заголовок' ),
Field::make( 'textarea', 'crb_seo_description', 'Описание' ),
Field::make( 'text', 'crb_seo_keywords', 'Ключевые слова' ),
Field::make( 'radio', 'crb_seo_robots', 'Видимость' )
->add_options( array(
'index, follow' => 'index, follow',
'noindex, nofollow' => 'noindex, nofollow',
) )
) );
И
Container::make( 'term_meta', __( 'Category Properties' ) )
->add_tab( __( 'SEO' ), array(
Field::make( 'text', 'crb_seo_title', 'Заголовок' ),
Field::make( 'textarea', 'crb_seo_description', 'Описание' ),
Field::make( 'text', 'crb_seo_keywords', 'Ключевые слова' ),
Field::make( 'radio', 'crb_seo_robots', 'Видимость' )
->add_options( array(
'index, follow' => 'index, follow',
'noindex, nofollow' => 'noindex, nofollow',
) )
) );