Documentation

wp-hide/module/general_js_variables_replace/placeholder_ignore_inline_js

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

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