Documentation

wph/components/force_run_on_admin

Posted in: Getting Started (3) Plugin Options Explained (23) Actions / Filters (22) How To (6)      Code Example (5)  

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;   
        }

Important!
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