aioseo_disable_canonical_url_amp, false
aioseo_disable_canonical_url_amp, false
Appears in: all-in-one-seo-pack.5.0.0.1
Hook Type: filter
Displaying hooks found in version: all-in-one-seo-pack.5.0.0.1apply_filters('aioseo_disable_canonical_url_amp, false') is found 1 times:
- /app/Common/Traits/Helpers/WpUri.php line 169
// Get rid of /amp at the end of the URL. if ( aioseo()->helpers->isAmpPage() && ! apply_filters( 'aioseo_disable_canonical_url_amp', false ) ) { $url[ $hash ] = preg_replace( '/\/amp$/', '', (string) $url[ $hash ] ); $url[ $hash ] = preg_replace( '/\/amp\/$/', '/', (string) $url[ $hash ] ); } $url[ $hash ] = apply_filters( 'aioseo_canonical_url', $url[ $hash ] );