Bulk-updating Icon version
-
Hi, I have ACF:FA installed on a large number of websites and I wanted a way to update from v5 to v6 on all without needing to log in to all dashboards, so I got the following function and put it in a theme update:
function force_acf_fa_plugin_to_v6() {
// Force plugin to recognise v6
update_option('ACFFA_current_version', '6.5.0');
delete_option('ACFFA_icon_data');
$settings = array(
'version' => '6.5.0',
'use_pro' => false,
'remove_v4_shims' => true,
);
update_option('ACFFA_settings', $settings);
}
add_action('after_setup_theme', 'force_acf_fa_plugin_to_v6');This seemed to work well, it updated the plugin version in the dashboard, the v6 CSS is enqueued and the icons displaying on the front end are fine.
I have just noticed however that on the sites when I look at the field, there is a red warning i.e. “Please reselect your FontAwesome Icon. Style: solid Name:calendar-alt” and if I hover over it says the icon cannot be automatically translated to its v6 equivalent.
Is there any other function I can use in my next theme update to help with this translation to v6? I think the red warning may alarm a few of my users.
Thanks.
The topic ‘Bulk-updating Icon version’ is closed to new replies.