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

This functionality is available for PRO version.

Name: wph/module/general_scripts/remove_id_attribute/ignore_ids
Type: Filter
Arguments:(array) $ignores

This filter provides a way to set ignores for scripts IDs, when using the function Remove ID from script tag

    add_filter ( 'wph/module/general_scripts/remove_id_attribute/ignore_ids', '__wph_module_general_scripts_remove_id_attribute_ignore_ids');
    function __wph_module_general_scripts_remove_id_attribute_ignore_ids ( $ignores )
            $ignores[]   =   'child-functions.wy-js';
            return $ignores;

The above code needs placing within wp-content/mu-plugins/ directory.

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