true, 'show_ui' => true, ) ) as $taxonomy ) { add_action( $taxonomy . '_edit_form', array( $this, 'render' ), 20, 2 ); } } /** * Renders the SEO section. * * @param WP_Term $term Term being edited. * @param string $taxonomy Taxonomy. */ public function render( $term, $taxonomy ): void { if ( ! $term instanceof WP_Term || ! current_user_can( Capabilities::EDIT_SEO ) ) { return; } MediaField::enqueue(); $settings = MetaModule::taxonomy( Plugin::instance()->options(), (string) $taxonomy ); $value = static fn( string $key ) => Meta::term( (int) $term->term_id, $key ); $noindex = (string) $value( 'noindex' ); wp_nonce_field( self::NONCE, self::NONCE . '_nonce' ); ?>
|
%term_title%',
' |
|