Plugin / Auto Post Scheduler

Super Blog Me

Frequently Asked Questions (FAQ)

Auto Post Scheduler hooks into the WordPress WP-Cron for scheduling. These cron events are typically only checked when a visitor loads any WordPress page on the site. If there are no visitors, there can be no cron checks and therefore no site. If there are no visitors, there can be no cron checks and therefore no auto post checks. If you are using .htaccess to allow,deny by IP, make sure to allow the IP of your WordPress site itself as the wp-cron uses that IP address.
This happens when another plugin incorrectly replaces cron_schedules with their own schedules instead of correctly adding to existing schedules, so the other plugin actually removes our aps_auto_hook. Other plugin code needs to be fixed.
WordPress calls WP_Cron on every page load to check for cron_schedules. If you have a high traffic site, you might want to use caching or set cron checks on a schedule instead to save on resources. See this post for more information. To do this: Make sure Auto Post Scheduler is enabled. Edit /wp-config.php and add the line define(‘DISABLE_WP_CRON’, true); From the server command line, edit your cron with ‘crontab -e’ and add the line */5 * * * * wget -q -O -“http://www.mydomain.com/wp-cron.php?doing_wp_cron=’date +\%s'” > /dev/null2>&1 and change ‘mydomain’ to your site domain. This crontab entry will call wp_cron every 5 minutes.
As far as I know, WP Super Cache must not hook into when a post status has changed. User MassimoD reports “Quick Cache does, W3Total Cache does, Hyper Cache does, Gator Cache does. Only WP Super Cache doesn’t.”
Yes! In case you think of something that is not covered in the plugin settings, here are the available filter hooks: aps_eligible_query – passed value is the array that will be used by WP_Query to find eligible posts. Any changes will also apply to aps_recycle_query as well. aps_recycle_query – passed value is the array that will be used by WP_Query to find recyclable posts if there are no eligible posts found. aps_update_post – passed value is the array that will be used by wp_update_post when publishing a draft or pending post. aps_recycle_post – passed value is the array that will be used by wp_update_post when recycling a published post. Example Usage #1: I only want to publish or recycle posts that have the tag ‘featured’. Add this code snippet to your theme’s functions.php file or equivalent. function my_aps_eligible_change($args) { $args['tag'] = 'featured'; return $args; } add_filter( 'aps_eligible_query', 'my_aps_eligible_change' ); Example Usage #2: I want to add a post meta field when a post has been recycled. Add this code snippet to your theme’s functions.php file or equivalent. function my_aps_recycle_post($args) { $postID = $args['ID']; add_post_meta( $postID, 'aps_recycled', 1, true ) || update_post_meta( $postID, 'aps_recycled', 1 ); return $args; } add_filter( 'aps_recycle_post', 'my_aps_recycle_post' );
Hopefully this table will help. Hopefully. Eligible Posts? Pick Random? Recycle Posts? RESULTS over multiple auto post checks drafts no no drafts ordered by date and published. if no drafts nothing happens. drafts yes no drafts picked randomly and published. if no drafts nothing happens. drafts no yes drafts ordered by date and published. if no drafts then published posts ordered by date and recycled. drafts yes yes drafts ordered randomly and published. if no drafts then published posts ordered by date and recycled. drafts, publish no no drafts and published posts are ordered by date and either published or recycled. drafts, publish yes no drafts and published posts are ordered randomly and either published or recycled. drafts, publish no yes drafts and published posts are ordered by date and either published or recycled. Recycle Posts does not apply since there are always eligible posts. drafts, publish yes yes drafts and published posts are ordered randomly and either published or recycled. Recycle Posts does not apply since there are always eligible posts.

Ratings

5
26 reviews

Rating breakdown

Details Information

Version

1.82

First Released

21 May, 2014

Total Downloads

66,836

Wordpress Version

3.0 or higher

Tested up to:

5.2.4

Require PHP Version:

-

Tags

Contributors

Languages

The plugin hasn't been transalated in any language other than English.

DIRECTORY DISCLAIMER

The information provided in this THEME/PLUGIN DIRECTORY is made available for information purposes only, and intended to serve as a resource to enable visitors to select a relevant theme or plugin. wpSocket gives no warranty of any kind, express or implied with regard to the information, including without limitation any warranty that the particular theme or plugin that you select is qualified on your situation.

The information in the individual theme or plugin displayed in the Directory is provided by the owners and contributors themselves. wpSocket gives no warranty as to the accuracy of the information and will not be liable to you for any loss or damage suffered by you as a consequence of your reliance on the information.

Links to respective sites are offered to assist in accessing additional information. The links may be outdated or broken. Connect to outside sites at your own risk. The Theme/Plugin Directory does not endorse the content or accuracy of any listing or external website.

While information is made available, no guarantee is given that the details provided are correct, complete or up-to-date.

wpSocket is not related to the theme or plugin, and also not responsible and expressly disclaims all liability for, damages of any kind, arising out of the use, reference to, or reliance on, any information or business listed throughout our site.

Keep Leading Your Followers!
Share it for them.