{"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":"
Runs the bulk updater of Image Attributes Pro, one batch at a time. Image attributes will be updated as per the Accepts one parameter, Image Attributes Pro\u00a0Bulk Updater Settings<\/code>.<\/p>
iaffpro_bu_run_bulk_updater( $batch_size );<\/code><\/pre>
$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>
version 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>
Example Usage<\/h2>
\/\/ Run Image Attributes Pro Bulk Updater\r\niaffpro_bu_run_bulk_updater( 25 );<\/code><\/pre>