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.8.1.1

apply_filters('aioseo_schema_json_flags') is found 1 times:

  • /app/Common/Schema/Helpers.php line 100
    096
    097
    098
    099
    100
    101
    102
    103
    104
    105
    106
    } );
     
    // 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;