Support

Account

Home Forums ACF PRO Front end form,how to change post_title and post_content properties Reply To: Front end form,how to change post_title and post_content properties

  • Hi @novelgroup

    Without creating an hidden field I have tried to get post_type value in acf/pre_save_post action but get_post_type($post_id) did not worked. So far I can get the value using $GLOBALS variable e.g

     if ( $GLOBALS["acf_form"]["new_post"]["post_type"] == "cpt_name" ) {
     do whatever 
    }