aioseo_normalize_assets_host
aioseo_normalize_assets_host
Appears in: all-in-one-seo-pack.4.2.0, all-in-one-seo-pack.4.2.1.1, all-in-one-seo-pack.4.2.2, all-in-one-seo-pack.4.2.3.1, all-in-one-seo-pack.4.2.4, all-in-one-seo-pack.4.2.5.1, all-in-one-seo-pack.4.2.6.1, all-in-one-seo-pack.4.2.7.1, all-in-one-seo-pack.4.2.8, all-in-one-seo-pack.4.3.0, all-in-one-seo-pack.4.3.1.1, all-in-one-seo-pack.4.3.2, all-in-one-seo-pack.4.3.3, all-in-one-seo-pack.4.3.5.1, all-in-one-seo-pack.4.3.6.1, all-in-one-seo-pack.4.3.7, all-in-one-seo-pack.4.3.8, all-in-one-seo-pack.4.4.0.1, all-in-one-seo-pack.4.4.2, all-in-one-seo-pack.4.4.4, all-in-one-seo-pack.4.4.5.1, all-in-one-seo-pack.4.4.6, all-in-one-seo-pack.4.4.8, all-in-one-seo-pack.4.4.9.1, all-in-one-seo-pack.4.4.9.2, all-in-one-seo-pack.4.5.0, all-in-one-seo-pack.4.5.1.1, all-in-one-seo-pack.4.5.2.1, all-in-one-seo-pack.4.5.3.1, all-in-one-seo-pack.4.5.4, all-in-one-seo-pack.4.5.5, all-in-one-seo-pack.4.5.6, all-in-one-seo-pack.4.5.7.1, all-in-one-seo-pack.4.5.7.2, all-in-one-seo-pack.4.5.7.3, all-in-one-seo-pack.4.5.8, all-in-one-seo-pack.4.5.9.1, all-in-one-seo-pack.4.5.9.2, all-in-one-seo-pack.4.6.2, all-in-one-seo-pack.4.6.4, all-in-one-seo-pack.4.6.5, all-in-one-seo-pack.4.6.6, all-in-one-seo-pack.4.6.8.1, all-in-one-seo-pack.4.6.9.1, all-in-one-seo-pack.4.7.0, all-in-one-seo-pack.4.7.1.1, all-in-one-seo-pack.4.7.3, all-in-one-seo-pack.4.7.4.2, all-in-one-seo-pack.4.7.5.1
Hook Type: filter
Displaying hooks found in version: all-in-one-seo-pack.4.7.5.1apply_filters('aioseo_normalize_assets_host') is found 3 times:
- /app/Common/Traits/Assets.php line 541
*/ public function normalizeAssetsHost( $path ) { static $paths = []; if ( isset( $paths[ $path ] ) ) { return apply_filters( 'aioseo_normalize_assets_host', $paths[ $path ] ); } // We need to verify the domain on the $path attribute matches // what's in site_url() for our assets or they won't load. $siteUrl = site_url(); $siteUrlEscaped = aioseo()->helpers->escapeRegex( $siteUrl );
- /app/Common/Traits/Assets.php line 551
$siteUrlEscaped = aioseo()->helpers->escapeRegex( $siteUrl ); if ( preg_match( "/^$siteUrlEscaped/i", $path ) ) { $paths[ $path ] = $path; return apply_filters( 'aioseo_normalize_assets_host', $paths[ $path ] ); } // We now know that the path doesn't contain the site_url(). $newPath = $path; $siteUrlParsed = wp_parse_url( $siteUrl ); $host = aioseo()->helpers->escapeRegex( str_replace( 'www.', '', $siteUrlParsed['host'] ) );
- /app/Common/Traits/Assets.php line 577
} $paths[ $path ] = $newPath; return apply_filters( 'aioseo_normalize_assets_host', $paths[ $path ] ); } /** * Get all the CSS files which a JS asset depends on. * This won't work properly unless you've run `npm run build` first. *