Posted in: Getting Started (4) Plugin Options Explained (35) Actions / Filters (29) How To (14)      Code Example (14)  

This functionality is available for PRO version.

Name: wph/components/force_run_on_admin
Type: Filter
(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;   

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