aioseo_schema_output

aioseo_schema_output

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_output') is found 1 times:

  • /app/Common/Schema/Helpers.php line 82
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    * @param  bool   $replaceTags Whether the smart tags should be replaced.
     * @return string              The schema as JSON.
     */
    public function getOutput( $schema, $replaceTags = true ) {
        $schema['@graph'] = apply_filters( 'aioseo_schema_output', $schema['@graph'] );
        $schema['@graph'] = $this->cleanAndParseData( $schema['@graph'], '', $replaceTags );
     
        // Sort the graphs alphabetically.
        usort( $schema['@graph'], function ( $a, $b ) {
            if ( is_array( $a['@type'] ) ) {
                return 1;