WordPress.org

Forums

Posts 2 Posts
[resolved] Function to check if connection exists (3 posts)

  1. mendelk
    Member
    Posted 2 years ago #

    Id like to have a simple function that returns a simple true or false if connected.
    Example: function x ($type,$from,$to){ ... }.

    Does that exist?

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

  2. scribu
    Member
    Plugin Author

    Posted 2 years ago #

    Yes:

    p2p_connection_exists( $type, array( 'from' => $from, 'to' => $to ) );
  3. mendelk
    Member
    Posted 2 years ago #

    Thanks :)

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.