wpseo_schema_article_type

wpseo_schema_article_type

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: wordpress-seo.24.8.1

apply_filters('wpseo_schema_article_type') is found 2 times:

  • /src/context/meta-tags-context.php line 575
    571
    572
    573
    574
    575
    576
    577
    578
    579
    580
    581
         *
         * @param string|string[] $type      The Article type.
         * @param Indexable       $indexable The indexable.
         */
        return \apply_filters( 'wpseo_schema_article_type', $additional_type, $this->indexable );
    }
     
    $type = 'Article';
     
    /*
     * If `None` is set (either on the indexable or as a default), set type to 'None'.
  • /src/context/meta-tags-context.php line 593
    589
    590
    591
    592
    593
    594
    595
    596
    597
    598
    599
            $type = [ $type, $additional_type ];
        }
     
        // Filter documented on line 499 above.
        return \apply_filters( 'wpseo_schema_article_type', $type, $this->indexable );
    }
     
    /**
     * Returns the main schema id.
     *
     * The main schema id.

See this hook used in plugins: