Last active
October 14, 2018 03:41
-
-
Save trangsihung/bb5b420400eefdc16fb8517630ad602e to your computer and use it in GitHub Desktop.
WPML Enable Capabilities
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function wpmlsupp_1706_reset_wpml_capabilities() { | |
if ( function_exists( 'icl_enable_capabilities' ) ) { | |
icl_enable_capabilities(); | |
} | |
} | |
add_action( 'shutdown', 'wpmlsupp_1706_reset_wpml_capabilities' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment