function pilkerton_activation() { wp_schedule_event(time(), 'hourly', 'get_and_publish_mls'); getAndPublishProperties(); flush_rewrite_rules(); }
/** * Tests automatic rets gathering. * * <limit> * : Maximum number of properties * * ## EXAMPLES * * wp testrets getEm * * @synopsis [<limit>] */ function fetch($limit = 250) { getAndPublishProperties($limit); // Print a success message WP_CLI::success("all done."); }