WordPress.org

Forums

Posts 2 Posts
[resolved] p2p_add_meta or something similar ? (4 posts)

  1. antoinicolas
    Member
    Posted 2 years ago #

    Is there a way to define programmatically meta for connections ?
    We can use p2p_get_meta to get values ( working like get_post_meta() ).
    But is there something to set values ( working like add_post_meta() ) ?
    Best regards,
    Antoine

    http://wordpress.org/extend/plugins/posts-to-posts/

  2. scribu
    Member
    Plugin Author

    Posted 2 years ago #

    Yes, there is in fact a p2p_add_meta() function; it just wasn't documented.

  3. antoinicolas
    Member
    Posted 2 years ago #

    Great news ! Thank you for the tip :)
    And to delete also ? Or we use p2p_add_meta('metaname', '') or something like this ?

  4. scribu
    Member
    Plugin Author

    Posted 2 years ago #

    Yes, there's also p2p_delete_meta() and p2p_update_meta().

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Posts 2 Posts
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.