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.
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);
-
This reply was modified 2 years, 5 months ago by
Clayton R.