Merged in feature/314-dev-dev01 (pull request #24)
auto-patch 314-dev-dev01-2024-01-25T04_09_02 * auto-patch 314-dev-dev01-2024-01-25T04_09_02
This commit is contained in:
@@ -12,6 +12,8 @@ class WPSEO_Primary_Term_Admin implements WPSEO_WordPress_Integration {
|
||||
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function register_hooks() {
|
||||
add_filter( 'wpseo_content_meta_section_content', [ $this, 'add_input_fields' ] );
|
||||
@@ -94,6 +96,8 @@ class WPSEO_Primary_Term_Admin implements WPSEO_WordPress_Integration {
|
||||
|
||||
/**
|
||||
* Adds primary term templates.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function wp_footer() {
|
||||
$taxonomies = $this->get_primary_term_taxonomies();
|
||||
@@ -173,6 +177,8 @@ class WPSEO_Primary_Term_Admin implements WPSEO_WordPress_Integration {
|
||||
|
||||
/**
|
||||
* Includes templates file.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
protected function include_js_templates() {
|
||||
include_once WPSEO_PATH . 'admin/views/js-templates-primary-term.php';
|
||||
@@ -193,8 +199,7 @@ class WPSEO_Primary_Term_Admin implements WPSEO_WordPress_Integration {
|
||||
/**
|
||||
* Filters which taxonomies for which the user can choose the primary term.
|
||||
*
|
||||
* @api array $taxonomies An array of taxonomy objects that are primary_term enabled.
|
||||
*
|
||||
* @param array $taxonomies An array of taxonomy objects that are primary_term enabled.
|
||||
* @param string $post_type The post type for which to filter the taxonomies.
|
||||
* @param array $all_taxonomies All taxonomies for this post types, even ones that don't have primary term
|
||||
* enabled.
|
||||
|
||||
Reference in New Issue
Block a user