• Please add code location to existing filter cn_refuse_code_scripts_html as additional parameter in wp_print_header_scripts() and wp_print_footer_scripts(), maybe similar to this:

    $scripts = apply_filters( 'cn_refuse_code_scripts_html', html_entity_decode( ... ), 'head' );
    
    $scripts = apply_filters( 'cn_refuse_code_scripts_html', html_entity_decode( ... ), 'body' );

    Currently the same filter is used for both head and body scripts which makes it impossible to target one location to add some code only in head or body.

    Cookie Notice 2.3.0

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Suggestion: Add code location as filter parameter’ is closed to new replies.