Tribe__Events__Organizer::linked_post_id_field_index( string $id_field, string $post_type )
Filters the linked post id field
Contents
Parameters
- $id_field
-
(string) (Required) Field name of the field that will hold the ID
- $post_type
-
(string) (Required) Post type of linked post
Source
File: src/Tribe/Organizer.php
public function linked_post_id_field_index( $id_field, $post_type ) { if ( self::POSTTYPE === $post_type ) { return 'OrganizerID'; } return $id_field; }
Changelog
Version | Description |
---|---|
4.2 | Introduced. |