WordPress.org

Ready to get started?Download WordPress

Ideas

WP Cron functions need Class Hook support

  1. therealwesfoster
    Member

    12345

    All of the WP built-in cron (scheduling) functions require a string for the hook. This causes a problem when trying to call a function from within a class.

    With most functions, you can use array(&$this, 'function_name'), however you cannot do this with WP's schedule functions.

    http://wordpress.org/support/topic/illegal-offset-type-when-using-wp_schedule_event

    Thanks!

    Posted: 2 years ago #

RSS feed for this topic

Reply

You must log in to post.

  • Rating

    12345
    8 Votes
  • Status

    This idea is under consideration