wpseo_schema_article_keywords_taxonomy

wpseo_schema_article_keywords_taxonomy

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

See hook in core

Displaying hooks found in version: wordpress-seo.24.8.1

apply_filters('wpseo_schema_article_keywords_taxonomy') is found 1 times:

  • /src/generators/schema/article.php line 100
    096
    097
    098
    099
    100
    101
    102
    103
    104
    105
    106
         * Filter: 'wpseo_schema_article_keywords_taxonomy' - Allow changing the taxonomy used to assign keywords to a post type Article data.
         *
         * @param string $taxonomy The chosen taxonomy.
         */
        $taxonomy = \apply_filters( 'wpseo_schema_article_keywords_taxonomy', 'post_tag' );
     
        return $this->add_terms( $data, 'keywords', $taxonomy );
    }
     
    /**
     * Adds categories as sections, if categories are assigned.