aioseo_disable_canonical_url_amp

aioseo_disable_canonical_url_amp

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

  • /app/Common/Traits/Helpers/WpUri.php line 141
     
    		// Get rid of /amp at the end of the URL.
    		if (
    			aioseo()->helpers->isAmpPage() &&
    			! apply_filters( 'aioseo_disable_canonical_url_amp', false )
    		) {
    			$url = preg_replace( '/\/amp$/', '', $url );
    			$url = preg_replace( '/\/amp\/$/', '/', $url );
    		}
    
    		$url = apply_filters( 'aioseo_canonical_url', $url );