Home › Forums › ACF PRO › Populate ACF Field on user-new.php › Reply To: Populate ACF Field on user-new.php
Found my solution (below)
function custom_user_profile_fields($user){
?>
<script>
(function($) {$(function() {
document.getElementById("send_user_notification").checked = false;
//JS HERE
});})( jQuery );
</script>
<?php
}
//add_action( 'show_user_profile', 'custom_user_profile_fields' );
//add_action( 'edit_user_profile', 'custom_user_profile_fields' );
add_action( "user_new_form", "custom_user_profile_fields" );
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.