Documentation

wp-hide/module/general_js_variables_replace/placeholder_ignore_inline_js

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

This functionality is available for PRO version.

Name: wp-hide/module/general_js_variables_replace/placeholder_ignore_inline_js
Type: Filter
Arguments: (bool) $ignore, (text) $element_content

This filter can be used to leave specific in-line JavaScript code within HTML source. When using  JavaScript Concatenate, all in-line JS code are being combined along with all local JS assets into a single file.


        add_filter( 'wp-hide/module/general_js_variables_replace/placeholder_ignore_inline_js', 'module_general_js_variables_replace_placeholder_ignore_inline_js' ); 
        function module_general_js_variables_replace_placeholder_ignore_inline_js( $ignore )
            {
                
                If ( strpos( $element_content, "var Cforms_var" )  !== FALSE )
                    $ignore  = TRUE;

                return $ignore;
                   
            }

 

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