Remove the action from the Sensei certificates plugin

Question

Actually, I want to remove the action from the main plugin sensei-certificates and override that action to my custom plugin but override that action it is working but it firing at the same time, so I want to remove the action from the main plugin which is here mentioned in Github link :
https://github.com/woocommerce/sensei-certificates/blob/master/classes/class-woothemes-sensei-certificates.php

And I want to remove this action:- https://nimb.ws/quhgDi

Below code, I have tried with my custom plugin and theme ( funtions.php ) file but it won’t work.

 add_action( 'init', 'remove_pdf_output_hooks', 11 );
 function remove_pdf_output_hooks(){   
     $instance = new WooThemes_Sensei_Certificates();
     remove_action('sensei_certificates_before_pdf_output', array($instance,'certificate_text'), 10, 2);
 }
0
Hims V 5 months 2021-03-12T02:05:24-05:00 0 Answers 0 views 0

Leave an answer

Browse
Browse