[+] Reset WPML capabilities

//WPML -> PERMISSION -> RESTORE – RESET
// THIS performs a reset on icl capabilities (add and run once in your active site’s functions.php ):
// TO BE USED WHEN SOME WPML MENU IS NOT PRESENT OR AUTHORIZATION IS REQUIRED
// YOU CAN ALSO TRY to manually update “_wpml_inactive” in database to 0.

function wpmlsupp_1706_reset_wpml_capabilities() {
if ( function_exists( ‘icl_enable_capabilities’ ) ) {
icl_enable_capabilities();
}
}
add_action( ‘shutdown’, ‘wpmlsupp_1706_reset_wpml_capabilities’ );


Let us know if this snippet is not working for you:

This snippet doesn’t work
0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments