aioseo_schema_json_flags

aioseo_schema_json_flags

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: all-in-one-seo-pack.4.7.5.1

apply_filters('aioseo_schema_json_flags') is found 1 times:

  • /app/Common/Schema/Helpers.php line 100
    		} );
    
    		// Allow users to control the default json_encode flags.
    		// Some users report better SEO performance when non-Latin unicode characters are not escaped.
    		$jsonFlags = apply_filters( 'aioseo_schema_json_flags', 0 );
    
    		$json = isset( $_GET['aioseo-dev'] ) || aioseo()->schema->generatingValidatorOutput // phpcs:ignore HM.Security.NonceVerification.Recommended, WordPress.Security.NonceVerification.Recommended
    			? aioseo()->helpers->wpJsonEncode( $schema, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE )
    			: aioseo()->helpers->wpJsonEncode( $schema, $jsonFlags );
    
    		return $json;