Stop runinng unwanted actions on WooCommerce

Add the following code to the functions.php to stop the action scheduler on the website. function yourprefix_disable_action_scheduler() { if ( class_exists( ‘ActionScheduler’ ) ) { remove_action( ‘action_scheduler_run_queue’, array( ActionScheduler::runner(), ‘run’ ) ); } } add_action( ‘init’, ‘yourprefix_disable_action_scheduler’, 10 ); Now this will disable the running status of all events on the woocoommerce. This may be… Continue reading Stop runinng unwanted actions on WooCommerce

How can we change the lifecycle methods to hooks in React with an example

Using of lifecycle methods and their implementation ans will the same example with hooks useState, useEffect. Functional Components are fast Faster as they do not have state and lifecycle, react needs to do less work to render these components. These components tend to be shorter and more concise. And these components do not use “this”… Continue reading How can we change the lifecycle methods to hooks in React with an example