Bulk posts from DRAFT Section

An way to do that is using SQL. You probably have access to the database, so you can run this daily. It’s not automatic, but will solve your problem UPDATE wp_posts SET post_status=”publish” WHERE post_status=”draft” AND post_type=”post” ORDER BY rand() LIMIT 5000 Just to explain what this line do: It will get 5000 items (LIMIT … Read more

bulk media crop for featured images

If I understand your question correctly, you would set a your preferred featured image/thumbnail dimensions either in Settings or, if you have or need a new special image type, by adding it to your functions PHP – something like: add_image_size( ‘product_preview’, 55, 55, true ) ; In order to retroactively crop the old images, pretty … Read more

WP_LIST_TABLE bulk action

When call $synchronizationList->display() every thing about table created, pagination,sort and bulk action but when its create bulk action its just create 2 input one is dropbox that contains all of bulk action and a submit button for apply button so it doesn’t create from tag and when a submit button doesn’t be in a form … Read more

How to delete all posts with dead image urls?

I’m only going to cover this in the broadest terms because I don’t know the details of how the linked images appear in your site, but assuming each post contains one hotlinked image: You need to write a script that loops through all your posts and parses the post content for a non-local URL. It … Read more

How to get bulk actions handler to display simple “Hello World”?

The user is redirected away after the bulk action is performed, so any output will be on the page you’re quick redirected away from. For example, if you’re bulk eiditng pages, you’ll start on a URL like: http://example.com/wp-admin/edit.php?post_type=page&paged=1 Then you perform a bulk action. Once it’s done you’ll end up on: http://example.com/wp-admin/edit.php?post_type=page&paged=1 The same page, … Read more

How to set posts to draft in bulk based on the content of the post

You could try to loop through all the posts and if the content contains the link, call this: change_post_status(get_the_ID(),’private’); or try draft if appropriate. Register this function first: function change_post_status($post_id,$status){ $current_post = get_post( $post_id, ‘ARRAY_A’ ); $current_post[‘post_status’] = $status; wp_update_post($current_post); }