Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [bulk]

The tag has no usage guidance.

1
vote
0answers
11 views

How to handle custom wp list table bulk actions

I'm using the wp_list_table class for my plugins and still wondering how to handle bulk actions out of the class file as best. I found here that you should do it like this: So the flow is like this: ...
1
vote
1answer
21 views

Bulk activate a theme on multisite

I have a multisite and a new theme that needs to be activated across all subsites. I found an answer by fuxia from 2012 and would like to know (1) if there have been changes in WordPress since that ...
0
votes
2answers
28 views

how to bulk add one line in the first paragraph of all posts

I want to add a sentence at the beginning of all posts of content directly into the post_content WordPress database. How do I? Either through the function.php or the MySQL command.
0
votes
0answers
33 views

How to bulk-untag multiple posts?

I have multiple batches of posts that are wrongly tagged with some terms, they need those terms to be removed. Specifically, I have... Custom post type: "article" Custom taxonomy: "company" (...
0
votes
1answer
40 views

Custom Bulk Actions handler not firing

I'm pretty new to Wordpress and PHP and am trying to add a custom field to a bulk edit list for a custom post. I've followed the following blog post but my handle_bulk_actions callback is not firing: ...
0
votes
1answer
290 views

How to bulk Edit Dates in Media Library?

I can't seem to find this option, but is there a way to bulk edit the dates of media items? I'm trying to go through my media and clean it up and I'd like to batch edit the dates of images (they'd be ...
1
vote
0answers
20 views

Bulk-Update Custom Posts

I have the following code in my functions.php file that I'm using to create a custom meta_key called 'spec_wp' (which is based on the value of an ACF repeater): add_filter('acf/save_post', '...
1
vote
0answers
23 views

Bulk post creating by title and content lists

I have 1 titles list and 2 content list separated by lines. I want to add them to WordPress in bulk. How can i do it? Example: Title 1 Title 2 and Content1 1 Content1 2 and Content2 1 Content2 ...
0
votes
1answer
32 views

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

I have thousands of offline links in my posts, and I'd like to set them all to draft. I know the links are in the format example.com/fileX. So I needed a SQL query to search the post content and ...
0
votes
0answers
11 views

Draf products not save custom fields

I’m using a plugin to copy products from other stores and save it as draft products. With the crawling I add custom fields, but If I publish all products with the bulk option the field don’t display, ...
0
votes
0answers
127 views

Bulk edit (sidebar options) in posts

I would like to know how to add "Sidebar options" (screen - http://joxi.ru/E2pk8j5IBdLX8m) from posts into the existing WP Bulk Action > Edit functionality.
0
votes
1answer
50 views

How to assign posts without any category to the default category

Due to a massive import of posts from another cms into wordpress I have ended with thousands of posts without any category. I need to add all those posts to the default category. I've seen this ...
0
votes
0answers
19 views

Custom bulk page permissions

I don't know if I am phrasing this question right, but having a hard time finding an answer. What I want to do is open up my posts or pages dashboard and be able to bulk edit pages' permissions. So I ...
0
votes
1answer
258 views

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

I’m learning how to make plugins and I’m running into some difficulty. I’m trying to modify the bulk actions dropdown under the post and pages parts of admin. I managed to get the dropdown to display ...
1
vote
0answers
56 views

Bulk edit WP posts to update embeded images with new alt tags

I have a client site that has approx. 2000 posts, most with 2-3 images embedded. Recently we've gone through the media gallery and given all the images proper meta data, clean titles, descriptions, ...
0
votes
2answers
53 views

flip horizontal images in bulk

I'm using the WooCommerce plugin and I have a list of like 200+ products and I want to flip horizontally the images for every product. If I will do this manually it will take me days probably to take ...
4
votes
1answer
41 views

Is there a way to expose additional fields to the Bulk Action > Edit functionality?

I would like to know if it's possible (using the existing WordPress core development features) to hook into the existing WP Bulk Action > Edit functionality, in order to expose additional fields to ...
0
votes
1answer
128 views

transition_post_status doesn't work with bulk updates

I have successfully setup an action that executes when a custom post type is moved from "pending" to "publish" status. Everything works as expected when you change the post status individually (press ...
0
votes
1answer
30 views

How to delete all posts with dead image urls?

I have Picture Blog with over 100k Images, All of these images are remotely hosted, and many of them contains dead links for images. I want to delete all posts that contains dead links for images, ...
0
votes
1answer
26 views

Send Bulk Email without them going to spam

I am trying to find a way so that I wont need to pay to MailChimp or any of these companies for my 6000+ users, I want to send them mails twice a month, so thats more than 12000 mails per month. Can I ...
1
vote
0answers
80 views

Perform a custom (bulk) action in media view

I wish to figure out how to add a custom action button in the media grid view ( upload.php screen) and how to perform a custom (bulk) action to the selected attachments, as shown in the screenshot ...
1
vote
2answers
848 views

URL Redirect and Bulk Actions in wp_list_table

I am using the Custom List Table Example plugin as a basis to create my own custom list table. Everything is great, except one thorny point. When I am processing bulk actions via the ...
3
votes
1answer
995 views

How to assign an additional/extra/second user-role to multiple users (of a specific user-role)

I have 500 users with 50 of those users assigned to user-role XYZ. I'd like these 50 XYZ users to keep their current XYZ user-role but also be assigned another/additional/extra/second user-role ABC......
0
votes
0answers
241 views

Delete 100+ posts or media files from wordpress faster than default?

The pages are running pretty fast but deleting many (like 25) posts at the same time takes up to one minute. Same thing on the media library - everything is pretty slow. I disabled already all ...
0
votes
0answers
58 views

Remove bulk option row

How can I remove bulk actions section from post and page lists pages on wordpress I tried with following code in functions.php as suggested on another thread but it does nothing add_action( '...
3
votes
1answer
2k views

WP-CLI Bulk delete posts from specific category

I would like to know how to bulk delete posts from a specific category using the WP-CLI, any tip?
3
votes
0answers
882 views

How to edit multiple post with Custom fields

I created a custom field for my post. All sounds good except for the fact that when I try to edit multiple posts (in the same time) by selecting the multiple option in the post list, I only find some ...
0
votes
1answer
856 views

WP_LIST_TABLE bulk action

I created a class extend WP_List_Table and created method for bulk actions like this : function get_bulk_actions() { $actions = array( 'synchronize' => 'Synchronize', ...
0
votes
1answer
82 views

bulk media crop for featured images

I want to select all the images which are used as "featured image" on woocommerce products and modify and crop the images to fit a specific height. Does anyone know if there is a plugin available or ...
2
votes
1answer
699 views

How to bulk edit canonical url's in SQL?

I've been assigned to edit the canonical URL's (rel="canonical" found in the head)of about 600 posts on a client's site. Not all of the posts will use the same canonical url. Nor are these 301's or ...
0
votes
1answer
165 views

Bulk posts from DRAFT Section

So, i did create a website with 110k posts and i need to test some SEO features, so i did clone the same database and i did post them on 5 other domains. The thing is i can't index them 110k posts at ...
1
vote
0answers
60 views

Bulk lock users without email address?

I'm cleaning-up my database, and for the sake of keeping SPAM down to a minimum I would like lock all of the wordpress user accounts that do not contain an e-mail address. Any ideas how to do this? ...
0
votes
0answers
599 views

How to bulk change user role to “No role for this site”

If I edit an individual user, the role dropdown menu has the option "— No role for this site —" (<option value="">— No role for this site —</option>): However this option doesn't exist on ...
0
votes
1answer
913 views

Bulk delete users by role? SQL?

I need to bulk-delete a large number (4,321) of users, all of a particular role type (not an out-of-the-box role name). I have tried several functions found online, and have tried the Bulk Delete (...
1
vote
3answers
1k views

cron job to auto delete posts of a specific post type older than x days

I want to delete all posts of a specific post type (in this case "vfb_entry") that are older than 60 days. The cron job should run once a day. I have the following code but it's not working if I ...
0
votes
0answers
153 views

`bulk_edit_custom_box` mess the input fields

I'm trying to create a bulk-edit plugin. Here is how Wordpress builk edit form looks by default: Than I add the following code: add_action( 'bulk_edit_custom_box', 'my_bulk_edit_custom_box', 10, 2 );...
1
vote
1answer
2k views

Delete All Product Images in phpmyadmin

I've just inherited a site that's being migrated to a new host, and I'm attempting to tidy up the database during the process. The WooCommerce site had roughly 10,000 products resulting in somewhere ...
1
vote
1answer
932 views

How do i change page template in bulk?

Googled for a long time, but did not find any solution. The case is - I have 950 pages I'd like to switch to other template. If i do it manually - it will take some time. If I do it via admin panel - ...
1
vote
1answer
28 views

New users not showing up in Post -> Edit

Background: A client has used first and last names as the user names, and we are trying to replace the old users with new users with more secure user names. We need to assign the posts for the old ...
0
votes
1answer
279 views

set_post_format called after wp_update_post when using bulk edit?

EDIT: See comments below. changing the question to reflect this new info From what I understand from the codex, save_post is meant to always fire after the post is saved (and when creating a new post)...
1
vote
1answer
1k views

How can I hook into existing WordPress Bulk actions?

I am creating a plugin which syncs both standard WP data and custom fields within a custom meta box on post edit pages, to an external resource using SQL queries. However my functions are currently ...
-1
votes
1answer
3k views

UWooCommerce - add cart discount programmatically?

I need to develop a plugin that applies a discount to the cart if x number of products have been purchased. Could someone point me in the direction of the code/API I need to use. Can find nothing ...
0
votes
1answer
389 views

Get the selected posts IDs to use in bulk edit AJAX call

The WordPress codex for bulk_edit_custom_box, along with this bulk edit example use the following piece of JavaScript to create an array of selected post IDs to send with the AJAX call that updates ...
0
votes
1answer
50 views

Publish post and create additional posts with same content

I'm building a site which allows authors to create a custom post type, and optionally elect to create X amount of additional posts with the same content. In this case all the content is meta values. ...
2
votes
0answers
1k views

How to manage saving custom field from Quick edit and Post Save using save_post action hook without colliding each other?

I's following Rachel Carden's tutorial on creating Quick Edit and Bulk Edit, and grabbed her full work from her github repo. I managed doing everything fine and I made a checkbox instead of radio ...
1
vote
1answer
478 views

Creating bulk posts with Youtube videos

I'm a bit new to Wordpress and I'm a bit lost reading all sort of docs about creating bulk posts using PHP. I've wrote a small code that using Youtube API v3 to get all the videos from a Youtube ...
2
votes
2answers
2k views

How to mass delete one line from all posts

I need to delete some content from all posts. Every post starts with this line: <p style="text-align: center;"><img src="http://i.imgur.com/picture.jpg" alt="" /></p> So I want to ...
0
votes
1answer
60 views

Renaming Custom Taxonomy Values

I'm new to Wordpress and have been tasked to migrate an existing non-Wordpress site to Wordpress. Our original site has each page associated to a country. I've been reading a lot and I believe I need ...
1
vote
1answer
984 views

Bulk edit contents of pages

I would like to know how to edit the content area for many pages. I have many options for bulk editing of pages, such as parent and sidebar, like this image: But I can't do this for the actual ...
0
votes
1answer
876 views

Missing 'Move to Trash' option from bulk select box

I seem to be missing the bulk select option for moving multiple items to the trash. This happens when all plugins are deactivated as well. Has anyone come across this before? http://i.stack.imgur.com/...