You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
60 lines
1.1 KiB
60 lines
1.1 KiB
<?php |
|
/** |
|
* WPSEO plugin file. |
|
* |
|
* @package WPSEO\Admin |
|
*/ |
|
|
|
/** |
|
* This class parses all the values for the general tab in the Yoast SEO settings metabox. |
|
*/ |
|
class WPSEO_Taxonomy_Content_Fields extends WPSEO_Taxonomy_Fields { |
|
|
|
/** |
|
* Returns array with the fields for the general tab. |
|
* |
|
* @return array |
|
*/ |
|
public function get() { |
|
$fields = array( |
|
'title' => $this->get_field_config( |
|
'', |
|
'', |
|
'hidden', |
|
'' |
|
), |
|
'desc' => $this->get_field_config( |
|
'', |
|
'', |
|
'hidden', |
|
'' |
|
), |
|
'linkdex' => $this->get_field_config( |
|
'', |
|
'', |
|
'hidden', |
|
'' |
|
), |
|
'content_score' => $this->get_field_config( |
|
'', |
|
'', |
|
'hidden', |
|
'' |
|
), |
|
'focuskw' => $this->get_field_config( |
|
'', |
|
'', |
|
'hidden', |
|
'' |
|
), |
|
); |
|
/** |
|
* Filter: 'wpseo_taxonomy_content_fields' - Adds the possibility to register additional content fields. |
|
* |
|
* @api array - The additional fields. |
|
*/ |
|
$additional_fields = apply_filters( 'wpseo_taxonomy_content_fields', array() ); |
|
|
|
return $this->filter_hidden_fields( array_merge( $fields, $additional_fields ) ); |
|
} |
|
}
|
|
|