• Resolved Marie Comet

    (@chaton666)


    Hi,
    nice plugin, thanks you!
    What do you think about an option which whill allow to hide all the console.log messages ?
    IMO it does not make it very professional.

    Thanks you

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Marie Comet

    (@chaton666)

    Ok, I found the solution reading your code :

    add_filter( 'evr_divi_popup-js_data','wdr_evr_divi_popup', 10, 1 );
    function wdr_evr_divi_popup( $js_data ) {
    
        $custom_js_data = array(
            'debug' => false,
        );
        $custom_js_data = array_merge( $js_data, $custom_js_data );
        return $custom_js_data;
    }

    It will be nice to add this in your FAQ ??

    • This reply was modified 6 years, 7 months ago by Marie Comet.
    • This reply was modified 6 years, 7 months ago by Marie Comet.

    Adding it to the option should work too:

    add_filter( ‘evr_divi_popup-js_data’, ‘my_divi_popup_options’ );
    function my_divi_popup_options( $config ) {


    // Disable debug
    $config[‘debug’] = false;

    return $config;
    }

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Hide console.log output’ is closed to new replies.