Support » Plugin: Hide This Part » Fix for the wp_enqueue_scripts notice

  • Since this plugin is no longer maintained. I figured, I’d help out the next person looking for help regarding the wp_enqueue_scripts notice.

    Find the following code:

    // Load jQuery
    wp_enqueue_script('jquery');

    Replace it with the following:

    // Load jQuery
    function hide_this_part_enqueue_scripts() {
    	wp_enqueue_script('jquery');
    }
    add_action('wp_enqueue_scripts', 'hide_this_part_enqueue_scripts');

    That should fix it.

    https://wordpress.org/plugins/hide-this-part/

  • The topic ‘Fix for the wp_enqueue_scripts notice’ is closed to new replies.