How to execute add_action() function from custom plugin to Crontrol plugin or do_action()?

I didn’t call the class yet, this code is now working class Scheduler { public $setup; public static $instance; public function __construct() { self::$instance =& $this; add_action(‘scheduler’, [$this, ‘etf_scheduler_func’]); } public function etf_scheduler_func() { $this->setup = new Setup(); $this->setup->set_table(); } public static function &get_instance() { if ( ! isset( self::$instance ) ) self::$instance = new … Read more

WordPress Plugin Receive a Link

You could, feasibly, do it with a custom field, ignoring ajax. You could store the ratings of each one in an array in the field. The star rating would be generated something like this: //note this is untested and provided as a guide not gospel $ratings = get_post_meta($post_ID,’star_ratings’); $total = 0; foreach($ratings as $rating) { … Read more