aioseo_opengraph_attributes

aioseo_opengraph_attributes

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

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

apply_filters('aioseo_opengraph_attributes') is found 1 times:

  • /app/Common/Social/Social.php line 116
    		if ( ! aioseo()->options->social->facebook->general->enable ) {
    			return $htmlTag;
    		}
    
    		$attributes = apply_filters( 'aioseo_opengraph_attributes', [ 'prefix="og: https://ogp.me/ns#"' ] );
    		foreach ( $attributes as $attr ) {
    			if ( strpos( $htmlTag, $attr ) === false ) {
    				$htmlTag .= " $attr ";
    			}
    		}