wpseo_primary_category_admin_pages

wpseo_primary_category_admin_pages

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-seo.24.8.1

apply_filters('wpseo_primary_category_admin_pages') is found 1 times:

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

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

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

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

    49
    50
    51
    52
    53
    54
    55
    56
             * 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( $current_page, \array_merge( [ 'edit.php', 'post.php', 'post-new.php' ], $additional_pages ), true );
        }
    }