W3speedster Customize Image

Function: w3SpeedsterCustomizeImage Description: Customize image tags. Parameter: $img = Image tag with all attributes $imgnn = Modified image tag by plugin $imgnn_arr = Image tag attributes array Return: $imgnn- Customized image tags function w3SpeedsterCustomizeImage($imgnn,$img,$imgnn_arr){ if(strpos($imgnn,’alt’) != false){ $imgnn = str_replace(‘alt=””‘,’alt=”value”‘,$imgnn); } return $imgnn; } function w3SpeedsterCustomizeImage($imgnn,$img,$imgnn_arr){ if(strpos($imgnn,’alt’) != false){ $imgnn = str_replace(‘alt=””‘,’alt=”value”‘,$imgnn); } return $imgnn; […]

Read More…

W3speedster Exclude Image To Lazyload

Function: w3SpeedsterExcludeImageToLazyload Description: W3Speedster allows you to exclude the images from optimization dynamically which you don’t want to lazyload. Parameter: $exclude_image = 0(default) || 1 $img = Image tag with all attributes $imgnn_arr = Image tag Return: 1 – it will lazy load the image. 0 – it will not lazy load the image. function […]

Read More…

W3speedster Change Iframe To Iframlazy

Function: w3SpeedsterIframetoIframelazy Description: Change iframe tag to iframlazy tag. Parameter: $iframelazy- 0(default) || 1 Return: 1 – Change iframe tag to iframlazy tag. function w3SpeedsterIframetoIframelazy($iframelazy){ $iframelazy = 1; return $iframelazy; } function w3SpeedsterIframetoIframelazy($iframelazy){ $iframelazy = 1; return $iframelazy; } […]

Read More…

W3speedster Change Video To Videolazy

Function: w3SpeedsterVideoToVideoLazy Description: Change video tag to videolazy tag Parameter: $videolazy- 0(default) || 1 Return: 1 – Change video tag to videolazy tag. function w3SpeedsterVideoToVideoLazy($videolazy){ $videolazy= 1; return $videolazy; } function w3SpeedsterVideoToVideoLazy($videolazy){ $videolazy= 1; return $videolazy; } […]

Read More…

W3speedster Seprate Critical Css For Category

Function: W3speedsterCriticalCssOfCategory Description: W3Speedster Create seprate critical css for categories pages. Parameter: $separate_cat_css- Array of Category. Return: $separate_cat_css – create separate critical css for each category and tag. function W3speedsterCriticalCssOfCategory($separate_cat_css){ $separate_cat_css = array(‘category’,’tag’,’custom-category’); return $separate_cat_css; } function W3speedsterCriticalCssOfCategory($separate_cat_css){ $separate_cat_css = array(‘category’,’tag’,’custom-category’); return $separate_cat_css; } […]

Read More…

W3speedster Seprate Critical Css For Post Type

Function: w3SpeedsterCreateSeprateCssOfPostType Description: By default our plugin creates a single critical css for post but If you wish to generate separate critical CSS for post. W3Speedster allows you to create critical CSS separately post-wise. Parameter: $separate_post_css- Array of post types. Return: $separate_post_css – create separate critical css for each post and page. function w3SpeedsterCreateSeprateCssOfPostType($separate_post_css){ $separate_post_css […]

Read More…

W3speedster Customize Main Settings

Function: w3SpeedsterCustomizeMainSettings Description: Customize plugin main settings. Parameter: $settings- Plugin main settings array (like: exclude css, cache path etc ) Return: $settings function w3SpeedsterCustomizeMainSettings($settings){ $settings[‘setting_name’] = value; return $settings; } function w3SpeedsterCustomizeMainSettings($settings){ $settings[‘setting_name’] = value; return $settings; } […]

Read More…

W3speedster Customize Add Settings

Function: w3SpeedsterCustomizeAddSettings Description: If you wish to change in variables and paths (URL), W3Speedster allows you to make changes in variables and paths with the help of this plugin function. Parameter: $add_settings- settings of the plugin. Return: :$add_settings – reflect the changes made in variable and path. function w3SpeedsterCustomizeAddSettings($add_settings){ $add_settings = str_replace(array(“mob.css”),array(“mobile.css”), $add_settings); return $add_settings; […]

Read More…

W3speedster Disable Htaccess Webp

Function: w3SpeedsterDisableHtaccessWebp Description: Our plugin converts .jpg/.png format to WebP format without changing the URL. it disable webp to render from HTACCESS. Parameter: $disable_htaccess_webp- 0(default) || 1 Return: It will add w3.webp at the end of the url for instance (xyz.jpgw3.webp). function w3SpeedsterDisableHtaccessWebp($disable_htaccess_webp){ $disable_htaccess_webp = 1 return $disable_htaccess_webp; } function w3SpeedsterDisableHtaccessWebp($disable_htaccess_webp){ $disable_htaccess_webp = 1 return […]

Read More…

W3speedster Customize Critical Css

Function: w3SpeedsterCustomizeCriticalCss Description: If you wish to make any changes in Critical CSS, W3Speedster allows you to make changes in generated Critical CSS. For instance if you want to replace/ remove any string/URL from critical CSS (like @font-face { font-family:”Courgette”; to @font-face { ) Parameter: $critical_css- Critical Css of the page. Return: $critical_css – Reflect […]

Read More…