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 | |
// Change default role dynamically on role selection change | |
add_action( 'acf/input/admin_head', 'acf_dynamic_default_role' ); | |
function acf_dynamic_default_role() { | |
global $pagenow; | |
if ( $pagenow == 'user-new.php' ) { | |
?> | |
<script> |