Articles

Article updates

CDN – CDN Url

This functionality is available for PRO version.

A Content Delivery Network – CDN – is a network of servers located around the globe in fundamental spots with fast access. It takes a while for a web page to load especially if the server is located far away from the user. So they are designed to host and deliver copies of your site’s static and dynamic content such as images, CSS, JavaScript, audio and video streams. Continue reading

wp-hide/module/general_js_variables_replace/placeholder_ignore_inline_js

This functionality is available for PRO version.

Name: wp-hide/module/general_js_variables_replace/placeholder_ignore_inline_js
Type: Filter
Arguments: (bool) $ignore, (text) $element_content

This filter can be used to leave specific in-line JavaScript code within HTML source. When using  JavaScript Concatenate, all in-line JS code are being combined along with all local JS assets into a single file.
Continue reading

wp-hide/mod_rewrite_rules

Name: wp-hide/mod_rewrite_rules
Type: Filter
Arguments: $rules, $rewrite_server_software

The filter can be used to change, add or remove any generated rewrite rules, which are being saved within .htaccess file (for Apache) or web.config file (for IIS). The same rules are being listed within the Set-up interface, so any modification through this filter will show up for Setup accordingly.


    add_filter('wp-hide/mod_rewrite_rules', 'wp_hide__mod_rewrite_rules', 999, 2);
    function wp_hide__mod_rewrite_rules( $rules, $server_software )
        {
            
            if  ( $server_software !=   'apache' )
                return $rules;
                
            
            $rules  =   '#Pass-through if another rewrite rule has been previouslly applied'    .
                        "\n"    .   'RewriteCond %{ENV:REDIRECT_STATUS} 200'    .
                        "\n"    .   'RewriteRule ^ - [L]' . 
                        "\n\n"  .   $rules;
            
            return $rules;

        }

wp-hide/get_module_item_setting

Name: wp-hide/get_module_item_setting
Type: Filter
Arguments: $value, $item_id
Returns: (string) $value

The action trigger on plugin admin interface Settings Changed. If this action triggered there was no error and the settings where saved successfully.

Scroll to top