Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function my_connection_types() {
- if ( !function_exists( 'p2p_register_connection_type' ) )
- return;
- p2p_register_connection_type( array(
- 'name' => 'seminar_zu_termin',
- 'from' => 'page',
- 'to' => 'tribe_events',
- 'cardinality' => 'one-to-many',
- 'sortable' => 'from'
- ) );
- }
- add_action( 'wp_loaded', 'my_connection_types' );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement