aioseo_schema_json_flags

aioseo_schema_json_flags

Hook Type: filter

See hook in core

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

apply_filters('aioseo_schema_json_flags') is found 1 times:

  • /app/Common/Schema/Helpers.php line 101
    		} );
    
    		// 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'] ) || $isValidator // phpcs:ignore HM.Security.NonceVerification.Recommended
    			? aioseo()->helpers->wpJsonEncode( $schema, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE )
    			: aioseo()->helpers->wpJsonEncode( $schema, $jsonFlags );
    
    		return $json;