Support » Plugins and Hacks » how to get category from wp_insert_post_data

  • I want to make a conditional filter that only modifies the insert post data to a certain category like

    function wp_add_date_meta( $data, $postarr ) {
          if (certain_category) {
                // do stuff
          }
    }

    but I am not given any information about the cat through the given arguments. Any clues?

  • The topic ‘how to get category from wp_insert_post_data’ is closed to new replies.