wpseo_schema_article_sections_taxonomy

wpseo_schema_article_sections_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_sections_taxonomy') is found 1 times:

  • /src/generators/schema/article.php line 118
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
         * Filter: 'wpseo_schema_article_sections_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_sections_taxonomy', 'category' );
     
        return $this->add_terms( $data, 'articleSection', $taxonomy );
    }
     
    /**
     * Adds a term or multiple terms, comma separated, to a field.