Adding Plugin-specific Fields with wp_insert_post()?

@sorich87’s answer is 99% there. The difference is that All-in-One SEO Pack follows certain best practices and uses a prefix of ‘_aioseop_’ on its meta keys. That makes the actual working code look more like this: $my_post = array( ‘post_title’ => ‘title’, ‘post_content’ => $post, ‘post_status’ => ‘publish’, ‘post_author’ => 1, ‘post_date’ => date(‘Y-m-d H:i:s’, … Read more

Getting Post details when post is published

The function is wp_insert_post(), and as you can see there are some hooks you can use to modify data. wp_insert_post_data is a filter that gets all data right before it will be inserted into the database, so you modify it there and don’t need to do anything to get it saved. At the end of … Read more

Is there a way to alter the order in which the plugins appear in the page?

From your comment it looks like you almost got it, Plugins that add something under your content usually use the_content filter by calling a function using add_filter for example outbarin plugin calls it like this: add_filter(‘the_content’, ‘outbrain_display’); so the way your can order them is by passing the priority parameter add_filter(‘the_content’, ‘outbrain_display’,99); But changing it … Read more