Posted in: Getting Started (3) Plugin Options Explained (32) Actions / Filters (25) How To (9)      Code Example (9)  

This functionality is available for PRO version.

Name: wph/components/force_run_on_admin
Type: Filter
Arguments: none

As default, certain features will not run on Dashboard to preserve functionality. This filter can be used to force modules to run on admin dashboard too.

    add_filter('wph/components/force_run_on_admin', 'custom_wph_components_force_run_on_admin');
    function custom_wph_components_force_run_on_admin()
            return TRUE;   

The above code should be placed within wp-content/mu-plugins/ directory, the file should include a underline ( _ ) char as first letter, to ensure is being loaded before WP Hide Loader module.

Share on FacebookShare on Google+Tweet about this on TwitterShare on LinkedIn
Scroll to top