프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$single_instance | WDS_CMB2_Attached_Posts_Field |
메소드 | 설명 | |
---|---|---|
get_instance ( ) : WDS_CMB2_Attached_Posts_Field | Creates or returns an instance of this class. | |
render ( $field, $escaped_value, $object_id, $object_type, $field_type ) | Add a CMB custom field to allow for the selection of multiple posts attached to a single page | |
sanitize ( $sanitized_val, $val ) |
메소드 | 설명 | |
---|---|---|
__construct ( ) | Initialize the plugin by hooking into CMB2 | |
display_attached ( $field, $attached ) | Helper function to grab and filter our post meta | |
setup_admin_scripts ( ) | Enqueue admin scripts for our attached posts field |
protected display_attached ( $field, $attached ) |
public static get_instance ( ) : WDS_CMB2_Attached_Posts_Field | ||
리턴 | WDS_CMB2_Attached_Posts_Field | A single instance of this class. |
public render ( $field, $escaped_value, $object_id, $object_type, $field_type ) |
protected setup_admin_scripts ( ) |