• Resolved auditt

    (@auditt)


    Hi there,

    first of all: awesome plugins, awesome work! Keep it going!

    Now to my question: How can I deactivate or unregister the elementor widgets that your both plugins, PayPal and Stripe, adds?

    Thank you and best regards

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Payment Plugins

    (@mrclayton)

    Hi @auditt

    Glad to hear you like our plugins.

    How can I deactivate or unregister the elementor widgets that your both plugins, PayPal and Stripe, adds?

    Only the PayPal plugin register Elementor widgets, the Stripe plugin offers shortcodes which you can use. Can you go into detail on why you’re wanting to unregister the PayPal Elementor Widgets?

    Kind Regards

    Thread Starter auditt

    (@auditt)

    Thank you for your response.

    For my client work, I have the the requirement to provide only specific elementor widgets and the PayPal Elementor Widgets belong to a collection I have to remove.

    Thank you.

    Plugin Author Payment Plugins

    (@mrclayton)

    Thanks for that explanation. Here is an example of how to remove:

    add_action('woocommerce_init', function(){
        try{
    	$widget_ctrl = \PaymentPlugins\WooCommerce\PPCP\Main::container()->get('PaymentPlugins\PPCP\Elementor\WidgetController');
            remove_action('elementor/widgets/register', [$widget_ctrl, 'register_widgets']);
        }catch(\Exception $e){
    		
        }
    }, 50);
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Unregister Elementor Widgets’ is closed to new replies.