Support

Account

Home Forums ACF PRO Target a particular form in a page Reply To: Target a particular form in a page

  • You are only returning the field if you change the setting. You need to always return the field

    
    add_filter('acf/load_field/name=employers_name', 'my_acf_load_employers_name');
    function my_acf_load_employers_name( $field ) {
    
      	if( is_page('edit-profile') ) {
      		// make required
        	$field['required'] = false;
      	}
        	// return
        	return $field;
    }