Filter
rpress_add_schema_microdata
On this page
Filters whether schema.org microdata is added.
Runs in rpress_add_schema_microdata(). The default is true only once wp_head has fired, so output is not modified earlier. Return false to disable microdata on menu item titles, descriptions and prices.
Parameters#
| Parameter | Type | Description |
|---|---|---|
$add_microdata | bool | Whether wp_head has already run. |
Return value#
bool. True to add microdata.
Example#
function my_disable_microdata( $add_microdata ) {
return false;
}
add_filter( 'rpress_add_schema_microdata', 'my_disable_microdata' );
Source#
Applied in:
includes/template-functions.php(line 726), inrpress_add_schema_microdata()
See also#
Was this page helpful?
