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

apply_filters('aioseo_schema_output') is found 1 times:

  • /app/Common/Schema/Helpers.php line 83
    	 * @param  bool   $replaceTags Whether the smart tags should be replaced.
    	 * @return string              The schema as JSON.
    	 */
    	public function getOutput( $schema, $isValidator = false, $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;