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

apply_filters('aioseo_schema_output') is found 1 times:

  • /app/Common/Schema/Helpers.php line 82
    	 * @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;