Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Martin Stehle

    (@hinjiriyo)

    Currently not. Why do you want that feature?

    Thread Starter D C

    (@derekryanclarke)

    The blog is an auto blog. It is currently feed by postie witch does a great job, but more time consuming for the poster.

    I want to move for a more automated feature to where the user can simply tag an article via Feedly and then it posts to the blog. This works, but does not create a featured image. This is where your plugin comes in.

    The issue is that the plugin only fires when published from the dashboard. So there is no featured image created from the auto post.

    I have tried to set the post to draft first, and then run a sql script to swap from draft to publish, but that does not trigger your plugin. I have also tired to run a sort of wp cron to convert, but still does not trigger your plugin.

    So basically I am trying to figure a way to either run the bulk set feature on a schedule (ie. it runs hourly to update each no featured image post and adds a featured image) or trigger your plugin via a script that will switch from draft to publish.

    Let me know if you can think of anything. Judging by your bulk feature, I am sure I can create a schedule, but I feel that will be more clunky. Would be much better if I could just hook in somehow.

    Thanks Martin

    Plugin Author Martin Stehle

    (@hinjiriyo)

    The plugin’s function which sets the featured image is triggered by the WordPress action hook save_post (that is the reason why SQL operations did not have any effect). The function’s name is add_featured_image( $post_id, $post, $is_update ). Is that enhough information for you?

    Thread Starter D C

    (@derekryanclarke)

    Thanks. This definitely helped.

    However, it seems now that it would be easy to some how run the bulk feature on a schedule. What files are triggering that?

    Plugin Author Martin Stehle

    (@hinjiriyo)

    You find the function add_featured_image() in the plugin’s file ‘class-quick-featured-images-defaults.php’.

    The function is called by the WP action hook ‘save_post’. This hook is in the WP core functions wp_insert_post() and wp_publish_post() (you find them in /wp-includes/post.php’ and ‘post-functions.php’). These functions are called when a post is saved or published (by the user, by a schedule etc.)

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Scheudle Set, Replace, remove’ is closed to new replies.