News

Article updates

Setup the plugin for Nginx

This functionality is available for PRO version.

Most of servers run a LAMP stack (Linux + Apache + MySQL + PHP) which is very popular for being fast and easy to use. Any rewrite is done through the .htaccess file which is created within each site, in the domain root. The file is accessible from php, which imply WordPress and WP Hide plugin. When changing any options through plugin interface, the required rewrite data to re-map urls, is deployed automatically, the process does not require the user intervention. Continue reading

wph/core/set_server_type

This filter has deprecated and replaced with a constant: WPH_SERVER_TYPE. This can be apache, nginx and is. The constant should be place on wp-config.php before the wp-hide default lines.


    define('WPH_SERVER_TYPE',          'apache');

 

 

 

This functionality is available for PRO version.

Name: wph/core/set_server_type
Type: Filter
Arguments: none

This filter can be used to set the server type which will be used internally by the plugin.
Continue reading

wph/components/force_run_on_admin

This functionality is available for PRO version.

Name: wph/components/force_run_on_admin
Type: Filter
Arguments:
(bool) $status
(string) $component_id

By default, certain features will not run on the Dashboard to preserve the breaking of certain functionality. This filter can be used to force modules to run on the admin dashboard too.
Continue reading

General / Html – Admin Bar

When being logged-in, on front side WordPress display a top admin bar to facilitate an easy access to different areas and configuration options.

The Admin Bar module can be used to hide the default admin bar, for specif roles.

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_css_variables_replace/placeholder_ignore_css

This functionality is available for PRO version.

Name: wp-hide/module/general_css_variables_replace/placeholder_ignore_css
Type: Filter
Arguments: (bool) $ignore, (text) $element_content, (string) $element_href

This filter can be used to leave specific in-line Cascading Style Sheet code or stylesheet asset within HTML source. When using  CSS Concatenate, all in-line Cascading Style Sheet code are being combined along all local css assets into a single file.
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

General / CSS – Class/ ID replacement

This functionality is available for PRO version.

 

This module is deprecated and replaced by Html/Css/JS Replacements

 

The module implement a post-processing engine, to provide additional functionality for Cascading Style Sheet data type. The  visual interface is self explanatory and the options are easy to understand for non technical persons.

A requirement for post-processing availability, is the CSS Combine feature, which parse all local Cascading Style Sheet assets and in-line styling, process and save as an unique file, to be used within the outputted HTML. This clean’s up the source code which slightly increase the page loading speed, due to lower number of resources to be loaded through multiple calls. The generated file is being cached internally for fast forwarding on another call.

This option also works great with any cache plugins to provide a robust page load, as the code continue to forward the cached data, instead re-process it.

 

Changing specific ID’s for HTML and CSS data can be achieved though CSS ID Replace option. This is very useful to replace specific WordPress ID’s like wpadminbar. The replacement occur at the HTML level. The processing also continue within Cascading Style Sheet data to ensure layout consistency preservation, so the output will still appear correctly.

The Class Replace options works similar to ID Replace. The classes substitution apply for HTML source code on all instances, also for Cascading Style Sheet data. The layout appearance will be conserved as there new classes continue relationship with declared styling properties.

Global replacement for a specific class is available. For example, using Elementor builder plugin, outputs lots of elementor classes and variants like elementor-page, elementor-inner, elementor-section-wrap, elementor-element, elementor-section-boxed etc. No need to specify each of variant, a global can be used instead. This consist on add an asterix to searched class.

General / JavaScript – JS Variables Replace

This functionality is available for PRO version.

 

This module is deprecated and replaced by Html/Css/JS Replacements

 

Through this module, commonly used JavaScript variables/functions from WordPress, plugins and theme can be renamed to something else. Often hackers boots parse and render the html in attempt to find specific variables which are widely used on WordPress ecosystem.
The following can be found in majority of websites:

  • wpcf7 – is being used by the Contact Form 7
  • qxshop_params, wc_cart_fragments_params – belong to WooCommerce platform
  • twentyseventeenScreenReaderText – Twenty Seventeen WordPress theme

This is a complex functionality which concatenate all page JavaScript code into 2 assets for post-processing. It also use a cache system with static files to prevent additional processing. This feature also helps a lot on increasing page speed, meaning also overall SEO, mainly for sites with lots of JavaScript files to load, as instead loading a bunch of resource data, it process just 2 files.

The JavaScript Combine Code option gather all JS resources from page, either inline or local files and combine into a single asset file.

Specific scripts can be excluded from the above procedure and leaved as is.

Through JavaScript Variables Replace area, actual JavaScript replacements can be done. In this particular example the wc_add_to_cart_params variable will be changed to add_cart_args, also the qxshop_params will be changed to ecom_params. The code will know what and where to change for the JavaScript to continue to run as normal.

Generally this module require very basic knowledge, to the point of making a difference of JavaScript variables. A simple page source or asset visualization will be enough to identify common variables which user may want to change through this interface.

Scroll to top