Property | Type | Description | |
---|---|---|---|
$single_instance | WDS_CMB2_Attached_Posts_Field |
Method | Description | |
---|---|---|
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 ) |
Method | Description | |
---|---|---|
__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 | ||
return | 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 ( ) |