Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- Plugin Name:
- Plugin URI:
- Plugin Description:
- Version: 0.0
- Author:
- Author URI:
- */
- // run it hourly
- wp_schedule_event(0,'hourly','post_from_outside');
- function post_from_outside() {
- // do something
- $timestamp = wp_next_scheduled("post_from_outside");
- $timestamp = date('Y-m-d, g:i a', $timestamp);
- echo $timestamp;
- }
- ?>
Add Comment
Please, Sign In to add comment