PHP Fatal error: Uncaught ArgumentCountError
-
PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function SchemaFront::RemoveWPSEOJsonLD(), 1 passed
The offending code:
add_filter( 'wpseo_json_ld_output', array( $this, 'RemoveWPSEOJsonLDBreadcrumb' ), 10, 2 ); add_action( 'wpseo_head', array( $this, 'json_ld' ), 91 ); /** * JSON LD output function that the functions for specific code can hook into. * * @since 1.8 */ public function json_ld() { $deprecated_data = array( '_deprecated' => 'Please use the "wpseo_schema_*" filters to extend the Yoast SEO schema data - see the WPSEO_Schema class.', ); /** * Filter: 'wpseo_json_ld_output' - Allows disabling Yoast's schema output entirely. * * @api mixed If false or an empty array is returned, disable our output. */ $return = apply_filters( 'wpseo_json_ld_output', $deprecated_data ); if ( $return === array() || $return === false ) { return; } do_action( 'wpseo_json_ld' ); }
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘PHP Fatal error: Uncaught ArgumentCountError’ is closed to new replies.