With Osclass, get your own classifieds site for free. Build your own Osclass installation and start advertising real estate, jobs or whatever you want- in minutes!
Good afternoon, does anyone know how to turn this function used for WordPress into something that we can use in Osclass
function ikreativ_async_scripts($url)
{
if ( strpos( $url, '#asyncload') === false )
return $url;
else if ( is_admin() )
return str_replace( '#asyncload', '', $url );
else
return str_replace( '#asyncload', '', $url )."' async='async";
}
add_filter( 'clean_url', 'ikreativ_async_scripts', 11, 1 );
Good afternoon, does anyone know how to turn this function used for WordPress into something that we can use in Osclass function ikreativ_async_scripts($url) { if ( strpos( $url, '#asyncload') === false ) return $url; else if ( is_admin() ) return str_replace( '#asyncload', '', $url ); else return str_replace( '#asyncload', '', $url )."' async='async"; } add_filter( 'clean_url', 'ikreativ_async_scripts', 11, 1 );