[Support request] wp_dequeue_style( ‘generate-child’ ) not working anymore ?

Home Forums Support [Support request] wp_dequeue_style( ‘generate-child’ ) not working anymore ?

Home Forums Support wp_dequeue_style( ‘generate-child’ ) not working anymore ?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #2392115
    Fabien

    Hi,

    It seems that with the latest update, the following function isn’t working anymore :

    add_action( 'wp_enqueue_scripts', function() {
      wp_dequeue_style( 'generate-child' );
    });

    Is their a fix please ?

    #2392668
    David
    Staff
    Customer Support

    Hi there,

    try increasing the priority:

    
    add_action( 'wp_enqueue_scripts', function() {
      wp_dequeue_style( 'generate-child' );
    },999);
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.