wpseo_schema_webpage filter
-
Hello
I got an error for a custom schema
I create a schema type for the homepage with @type => WebPageFatal error: Uncaught ArgumentCountError: Too few arguments to function Yoast\WP\SEO\Integrations\Front_End\Schema_Accessibility_Feature::maybe_add_accessibility_feature(), 2 passed in /..../wp-includes/class-wp-hook.php on line 292 and exactly 4 expected in /..../wp-content/plugins/wordpress-seo/src/integrations/front-end/schema-accessibility-feature.php:47
On line 291 of schema-generator.php file
$graph_piece = \apply_filters( 'wpseo_schema_' . $type, $graph_piece, $context );
Two arguments passed to filter wpseo_schema_webpage
and
In Schema_Accessibility_Feature class
add_filter( 'wpseo_schema_webpage', [ $this, 'maybe_add_accessibility_feature' ], 10, 4 );
Four arguments passed to method
- The topic ‘wpseo_schema_webpage filter’ is closed to new replies.