Documentation

wph/module/general_scripts/remove_id_attribute/ignore_ids

Posted in: Getting Started (4) How To (15) Plugin Options Explained (37) Actions / Filters (31)      Code Example (16)  

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

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