actions – How to add add_action function from custom plugin to Crontrol plugin?
Question
I created a custom plugin and I need to schedule add_action using Crontrol Plugin, the Setup class is from different php class.
class Scheduler {
public $setup;
public function __construct()
{
add_action('scheduler', [$this, 'etf_scheduler_func']);
}
public function etf_scheduler_func() {
$this->setup = new Setup();
$this->setup->set_table();
}
}
0
11 months
2022-03-21T01:40:51-05:00
2022-03-21T01:40:51-05:00 0 Answers
0 views
0
Leave an answer