Side Note: if you want to use my previous code with the deactivate_plugins() function you should remove the “!” from the checks for the activated plugins in my previous code. Even though the comments in my previous code says it checks for if the plugin is activated, it actually checks if the plugin isn’t activated and then does whatever is inside the if statement. So removing the “!” will cause whatever is inside the if statement to run if the plugin is active.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users