Skip to content
Docs
Get RestroPress

Filter

rpress_add_schema_microdata

Updated
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#

ParameterTypeDescription
$add_microdataboolWhether 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), in rpress_add_schema_microdata()

See also#

Was this page helpful?