Timeline for Run a cron job (or similar) in the background of WP after post update/create
Current License: CC BY-SA 3.0
15 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Feb 19, 2012 at 13:04 | history | edited | mor7ifer | CC BY-SA 3.0 |
added 13 characters in body
|
Feb 19, 2012 at 9:37 | comment | added | turbonerd | Thanks for everything. New post here if you're interested... :D wordpress.stackexchange.com/questions/42814/… | |
Feb 18, 2012 at 12:23 | comment | added | mor7ifer | Have it do something simple to test it, like add [updated] to the post name or something like that. You can change the interval it acts at too, that's talked about here | |
Feb 18, 2012 at 11:37 | vote | accept | turbonerd | ||
Feb 18, 2012 at 11:37 | comment | added | turbonerd |
Yeah, I think everything else is working - I can see the cron in Cron View and the option is being set. The filter isn't working but I suspect that's my issue rather than yours :) Thanks very much!
|
|
Feb 18, 2012 at 4:57 | history | edited | mor7ifer | CC BY-SA 3.0 |
deleted 1 characters in body
|
Feb 18, 2012 at 4:56 | comment | added | mor7ifer |
Yup, that should be good, get_option( 'my_updated_posts' ) == false ) should do it for you, it shouldn't have been a negative on that empty() anyways, that was a brain fart...I'm pretty pleased that that was all I messed up!
|
|
Feb 17, 2012 at 17:21 | comment | added | turbonerd |
Removing the empty seems to have worked - get_option apparently returns FALSE if there are no entries with that name. Is this OK?
|
|
Feb 17, 2012 at 17:19 | comment | added | turbonerd |
OK. It's breaking on this line: if ( !empty( get_option( 'my_updated_posts' ) ) ) in my_filter_content . My server is set up so that errors aren't publicly displayed though, so I'm not sure why!
|
|
Feb 17, 2012 at 16:44 | comment | added | mor7ifer | There are plugins that will do that for you, I think Cron View is the one that I use, but I cannot remember. | |
Feb 17, 2012 at 16:26 | comment | added | turbonerd | One thing.. how do I go about seeing whether or not the cron job has actually been scheduled? | |
Feb 17, 2012 at 16:23 | comment | added | mor7ifer | You know...thinking about it, I bet you could do some pretty powerful filtering if you based a class off that code... | |
Feb 17, 2012 at 16:19 | comment | added | mor7ifer | Yup, you've got it...let me know how that works, I'm interested as to what stupid error(s) I made :D | |
Feb 17, 2012 at 16:17 | comment | added | turbonerd |
Thanks for that, I'll give it a go now. Is YOUR_FUNCTION_HERE( $v ); where I'd put my filtering code?
|
|
Feb 17, 2012 at 16:16 | history | answered | mor7ifer | CC BY-SA 3.0 |