Documentation

wph/module/general_scripts/remove_id_attribute/ignore_ids

Posted in: Getting Started (4) Plugin Options Explained (32) Actions / Filters (26) How To (12)      Code Example (11)  

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.js-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