I am trying to:
Remove all traces of Toolset WooCommerce.
Link to a page where the issue can be seen:
In the debug information
__FIELDS_GROUP_toolset-woocommerce-fields":{"permissions":{"modify_fields_in_edit_page_toolset-woocommerce-fields":{"roles":["administrator"]},"view_fields_in_edit_page_toolset-woocommerce-fields":{"roles":["administrator"]}},"mode":"permissions"}}}}},"types":
and on dropdown menus that list fields.
I expected to see:
No WooCommerce choices/fields.
Instead, I got:
Plenty of them left. I've done a search on the posts database and deleted any woocommerce references via sql, as per another support ticket's suggestion. Still seeing these things.
I understand you are trying to remove traces of Toolset WooCommerce from your site, but could you please be more specific about where you are still seeing such traces that you need help with, it is not clear from your question.
I can't seem to replicate the dropdown fields issue, so perhaps there was an update on my hosting's side. However, I can still see the registrations in the debug information.
"__FIELDS_GROUP_toolset-woocommerce-fields":{"permissions":{"modify_fields_in_edit_page_toolset-woocommerce-fields":{"roles":["administrator"]},"view_fields_in_edit_page_toolset-woocommerce-fields":{"roles":["adm
This would imply to me that the plugin wasn't completely removed.
On my own debug info the only references to WooCommerce I see are from the data about active plugins, referencing WooCommerce itself and the Toolset WooCommerce Blocks plugin.
In your debug info it looks like it refers to Access settings for the field group created when Toolset WooCommerce Blocks was active.
So on my test site I saved Access settings for that field group, and now I see the same in the debug info.
I'm looking into how to remove those Access settings from the database, so that they won't appear in the debug info.
I'll get back to you when I've made progress on that.
Thanks for the update Nigel. FYI, neither WooCommerce nor the Toolset WooCommerce Blocks are installed any longer.
I crafted a small snippet of PHP code to remove the traces from the wp_options and wp_usermeta tables that I found on my own site.
Before running it on your own site I recommend you take a backup.
Then add the following code to a snippet at Toolset > Settings > Custom Code.
This should be an On Demand snippet, which you will the run one time only.
/**
* delete user meta with key wpcf_access_section_status
*/
$user_ids = get_users( ['fields' => 'ID'] );
foreach ($user_ids as $user_id) {
delete_user_meta( $user_id, 'wpcf_access_section_status' );
}
/**
* remove reference to
* __FIELDS_GROUP_toolset-woocommerce-fields &&
* __FIELDS_GROUP_extra-wc-fields
* from Access settings
*/
$access_settings = get_option( 'toolset-access-options' );
unset($access_settings->third_party['__FIELDS']['__FIELDS_GROUP_toolset-woocommerce-fields']);
unset($access_settings->third_party['__FIELDS']['__FIELDS_GROUP_extra-wc-fields']);
update_option( 'toolset-access-options', $access_settings );
That should remove the last vestiges of Toolset WooCommerce Blocks from your site.