Support

Account

Home Forums General Issues ACF Date Picker To Change Category Reply To: ACF Date Picker To Change Category

  • https://developer.wordpress.org/reference/functions/wp_set_post_term

    
    if($expiredate < $today){
    	wp_set_post_terms($p->ID, $term_id, $taxonomy, true);
    }