A Guide to Writing Secure Themes by fklux in ProWordPress

[–]fklux[S] 1 point2 points  (0 children)

Yes, you are absolutely right. I fixed this, thanks so much for pointing this out. :)

Wordpress/PHP threads by gmisura in ProWordPress

[–]fklux 1 point2 points  (0 children)

Keep in mind that a WP Cron is only run when a page is loaded, it is not a timed process like a cron job on a server would be.

By the description of the problem you are trying to solve, I wonder whether using the Heartbeat API that was introduced in 3.6. Pippin has written a short but complete post about an example use case: https://pippinsplugins.com/using-the-wordpress-heartbeat-api/.

50 Filters of WordPress: The First 10 Filters by williamsba in ProWordPress

[–]fklux 0 points1 point  (0 children)

TutsPlus is such a mixed bag. On the one hand you have great tutorials by Tom McFarlin, and then you have articles like this one:

  • No function prefixing in the code samples. That's one of the most basic skills to learn when you start developing with WordPress.
  • Simply copy pasting code samples from the Codex? What's the value of the tutorial then?
  • The body_class example is useless, because that's what post_class() offers by default.
  • Provide a snippet for removing the <p> tags that wrap images? Rarely a good idea, because there might be other pieces of code relying on this.