wpml_home_url

wpml_home_url

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

  • /app/Common/Traits/Helpers/ThirdParty.php line 289
    	 * @param  string $path The relative path of the URL.
    	 * @return string $url  The filtered URL.
    	 */
    	public function localizedUrl( $path ) {
    		$url = apply_filters( 'wpml_home_url', home_url( '/' ) );
    
    		// Remove URL parameters.
    		preg_match_all( '/\?[\s\S]+/', $url, $matches );
    
    		// Get the base URL.
    		$url  = preg_replace( '/\?[\s\S]+/', '', $url );