wpseo_primary_category_admin_pages

wpseo_primary_category_admin_pages

Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-seo.22.3

apply_filters('wpseo_primary_category_admin_pages') is found 1 times:

  • /src/conditionals/primary-category-conditional.php line 46

    Warning: Undefined array key 49 in /home/c6974294/public_html/wp-plugin-api.com/wp-content/themes/wordpress-hooks/functions.php on line 167

    Warning: Undefined array key 50 in /home/c6974294/public_html/wp-plugin-api.com/wp-content/themes/wordpress-hooks/functions.php on line 167

    Warning: Undefined array key 51 in /home/c6974294/public_html/wp-plugin-api.com/wp-content/themes/wordpress-hooks/functions.php on line 167

    		 * Filter: Adds the possibility to use primary category at additional admin pages.
    		 *
    		 * @param array $admin_pages List of additional admin pages.
    		 */
    		$additional_pages = \apply_filters( 'wpseo_primary_category_admin_pages', [] );
    		return \in_array( $this->current_page->get_current_admin_page(), \array_merge( [ 'edit.php', 'post.php', 'post-new.php' ], $additional_pages ), true );
    	}
    }