You appear to be a bot. Output may be restricted
Description
Generates the HTML for a hidden field for a primary taxonomy.
Usage
$string = WPSEO_Primary_Term_Admin::primary_term_field( $taxonomy_name );
Parameters
- $taxonomy_name
- ( string ) required – The taxonomy's slug.
Returns
string The HTML for a hidden primary taxonomy field.
Source
File name: wordpress-seo/admin/class-primary-term-admin.php
Lines:
1 to 8 of 8
protected function primary_term_field( $taxonomy_name ) { return sprintf( '<input class="yoast-wpseo-primary-term" type="hidden" id="%1$s" name="%2$s" value="%3$s" />', esc_attr( $this->generate_field_id( $taxonomy_name ) ), esc_attr( $this->generate_field_name( $taxonomy_name ) ), esc_attr( $this->get_primary_term( $taxonomy_name ) ) ); }