elementor icon indicating copy to clipboard operation
elementor copied to clipboard

🚀 Feature Request: Remove Notification: Meet the New Theme Builder …

Open dbfischer opened this issue 2 years ago • 1 comments

Prerequisites

  • [X] I have searched for similar features requests in both open and closed tickets and cannot find a duplicate.
  • [X] The feature is still missing in the latest stable version of Elementor ( Elementor Pro )

What problem is your feature request going to solve? Please describe.

I really don't like the New Theme Builder. It is slow, cumbersome, confusing and totally not needed for me. The list view is so much better. The nag message "Meet the New Theme Builder ..." can't be deactivated. If I close it I expect to close this message forever and not nag again.

Describe the solution you'd like

The nag message should not be appearing when the option is deselected. We should not have to scratch around trying to find ways to delete it.

Describe alternatives you've considered

No response

Additional context

No response

dbfischer avatar Jan 23 '23 08:01 dbfischer

+1

bentographics avatar May 13 '24 07:05 bentographics

+1

dan-alan avatar Aug 09 '24 09:08 dan-alan

This works for me:

// Remove "Meet the New Theme Builder"
add_action( 'init', 'remove_elementor_promotion_filter', 20 );
function remove_elementor_promotion_filter() {
    // Ensure Elementor's Source_Local class exists
    if ( class_exists( '\Elementor\TemplateLibrary\Source_Local' ) ) {
        $cpt = \Elementor\TemplateLibrary\Source_Local::CPT;
        $filter_name = 'views_edit-' . $cpt;

        global $wp_filter;

        if ( isset( $wp_filter[ $filter_name ] ) && isset( $wp_filter[ $filter_name ]->callbacks ) ) {
            foreach ( $wp_filter[ $filter_name ]->callbacks as $priority => $filters ) {
                foreach ( $filters as $key => $filter ) {
                    if ( is_array( $filter['function'] ) ) {
                        $function = $filter['function'];
                        $object = $function[0];
                        $method = $function[1];

                        if ( $method === 'print_new_theme_builder_promotion' ) {
                            // Remove the filter
                            remove_filter( $filter_name, [ $object, $method ], $priority );
                        }
                    }
                }
            }
        }
    }
}

brajno avatar Oct 22 '24 08:10 brajno