Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Testing WP-Cron events #2731

Open
jonathanbossenger opened this issue Jul 19, 2024 · 4 comments
Open

Testing WP-Cron events #2731

jonathanbossenger opened this issue Jul 19, 2024 · 4 comments
Assignees

Comments

@jonathanbossenger
Copy link
Collaborator

jonathanbossenger commented Jul 19, 2024

Details

  • Content type (Online Workshop, Lesson, Course, Tutorial, or Lesson Plan): Lesson
  • Content title: Debugging WP-Cron scheduled events
  • Topic description:
  • Audience (User, Developer, Designer, Contributor, etc.): Developer
  • Experience Level (Beginner, Intermediate, Advanced, Any): Intermediate

Learning Objectives

Related Resources and Other Notes

Automation Code

//lesson

@MichelleBlanchette
Copy link

Is WP CLI or a plugin like WP Crontrol or Debug Bar the way we want to recommend? Perhaps briefly cover both ways?

I find WP CLI to be easiest, but developers may not always have SSH access or a local environment set up to use WP CLI (if they must debug something happening for a specific user, for example).

@MichelleBlanchette
Copy link

Possible reference to lesson #2797

@jonathanbossenger
Copy link
Collaborator Author

I haven't gotten round to it on these later lessons yet, but I usually base the lesson on something from the developer docs. In this case this is the relevant docs page: https://developer.wordpress.org/plugins/cron/simple-testing/

@jonathanbossenger
Copy link
Collaborator Author

After reading though the developer docs on this (and using some of these things to test for #2729) I have altered the order of the three different tools.

The main reason for this is that so far in the plugin developer course, WP CLI has not been introduced yet.

There's an entire module on WP CLI planned for the Advanced developer course, so we might also want to leave that tout now, and then add it back in later?

@jonathanbossenger jonathanbossenger changed the title Testing of WP-Cron Testing WP-Cron events Dec 10, 2024
@CrochetFeve0251 CrochetFeve0251 moved this from 👋 Ready to Create to 🔎 Ready for Review in LearnWP Content - Development Dec 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 🔎 Ready for Review
Development

No branches or pull requests

3 participants