WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] register activation - Add terms to taxonomy? (custom post types) (3 posts)

  1. Daniel Gilfoy
    Member
    Posted 2 years ago #

    I'm working on a plugin that has some base taxonomy terms and was wondering if there was a way I can set them on activation.

    I see set_objects_terms function but I don't have a post I'm relating them to, just adding them in the taxonomy list.

    Anybody have a solution to this?

  2. Daniel Gilfoy
    Member
    Posted 2 years ago #

    Pfft. I apparently didn't look hard enough. Found the solution this morning:

    wp_insert_term();

  3. gilzow
    Member
    Posted 2 years ago #

    Gilfoy! Good to see you on here! What plugin are you working on?

Topic Closed

This topic has been closed to new replies.

About this Topic