Documentation

wph/components/force_run_on_admin

Posted in: Getting Started (4) Plugin Options Explained (34) Actions / Filters (27) How To (14)      Code Example (13)  

This functionality is available for PRO version.

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

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', 10, 2);
    function custom_wph_components_force_run_on_admin( $status, $component_id )
        {
            
            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