{"id":3499,"date":"2023-03-27T23:38:26","date_gmt":"2023-03-27T18:08:26","guid":{"rendered":"https:\/\/imageattributespro.com\/?post_type=codex&p=3499"},"modified":"2023-03-27T23:47:12","modified_gmt":"2023-03-27T18:17:12","slug":"iaffpro_bu_run_bulk_updater","status":"publish","type":"codex","link":"https:\/\/imageattributespro.com\/codex\/iaffpro_bu_run_bulk_updater\/","title":{"rendered":"iaffpro_bu_run_bulk_updater()"},"content":{"rendered":"\n

Runs the bulk updater of Image Attributes Pro, one batch at a time. Image attributes will be updated as per the Bulk Updater Settings<\/code>.<\/p>\n\n\n\n

iaffpro_bu_run_bulk_updater( $batch_size );<\/code><\/pre>\n\n\n\n

Accepts one parameter, $batch_size<\/code> which is an integer<\/code>. The default batch size is 20 which can be filtered using iaffpro_bu_batch_size<\/a><\/code> filter.<\/p>\n\n\n\n

Image Attributes Pro\u00a0version 4.2<\/code>\u00a0and later varies the images per batch based on the server conditions. However, if you override the default batch size using iaffpro_bu_batch_size<\/code> filter, the variable batch size is not used.<\/p>\n\n\n\n

Example Usage<\/h2>\n\n\n\n
\/\/ Run Image Attributes Pro Bulk Updater\r\niaffpro_bu_run_bulk_updater( 25 );<\/code><\/pre>\n\n\n\n

For a better more elaborate example, refer: Run Image Attributes Pro Bulk Updater Programmatically \/ via Cron Job<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"

Runs the bulk updater of Image Attributes Pro, one batch at a time. Image attributes will be updated as per the Bulk Updater Settings. Accepts one parameter, $batch_size which is an integer. The default batch size is 20 which can be filtered using iaffpro_bu_batch_size filter. Image Attributes Pro\u00a0version 4.2\u00a0and later varies the images per batch […]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"open","ping_status":"open","template":"","format":"standard","meta":[],"tags":[],"codex-type":[28],"_links":{"self":[{"href":"https:\/\/imageattributespro.com\/wp-json\/wp\/v2\/codex\/3499"}],"collection":[{"href":"https:\/\/imageattributespro.com\/wp-json\/wp\/v2\/codex"}],"about":[{"href":"https:\/\/imageattributespro.com\/wp-json\/wp\/v2\/types\/codex"}],"author":[{"embeddable":true,"href":"https:\/\/imageattributespro.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/imageattributespro.com\/wp-json\/wp\/v2\/comments?post=3499"}],"version-history":[{"count":2,"href":"https:\/\/imageattributespro.com\/wp-json\/wp\/v2\/codex\/3499\/revisions"}],"predecessor-version":[{"id":3503,"href":"https:\/\/imageattributespro.com\/wp-json\/wp\/v2\/codex\/3499\/revisions\/3503"}],"wp:attachment":[{"href":"https:\/\/imageattributespro.com\/wp-json\/wp\/v2\/media?parent=3499"}],"wp:term":[{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/imageattributespro.com\/wp-json\/wp\/v2\/tags?post=3499"},{"taxonomy":"codex-type","embeddable":true,"href":"https:\/\/imageattributespro.com\/wp-json\/wp\/v2\/codex-type?post=3499"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}