PHP 클래스 WDS_CMB2_Attached_Posts_Field

파일 보기 프로젝트 열기: webdevstudios/cmb2-attached-posts 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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

메소드 상세

__construct() 보호된 메소드

Initialize the plugin by hooking into CMB2
protected __construct ( )

display_attached() 보호된 메소드

Helper function to grab and filter our post meta
protected display_attached ( $field, $attached )

get_instance() 공개 정적인 메소드

Creates or returns an instance of this class.
부터: 0.1.0
public static get_instance ( ) : WDS_CMB2_Attached_Posts_Field
리턴 WDS_CMB2_Attached_Posts_Field A single instance of this class.

render() 공개 메소드

Add a CMB custom field to allow for the selection of multiple posts attached to a single page
public render ( $field, $escaped_value, $object_id, $object_type, $field_type )

sanitize() 공개 메소드

public sanitize ( $sanitized_val, $val )

setup_admin_scripts() 보호된 메소드

Enqueue admin scripts for our attached posts field
protected setup_admin_scripts ( )

프로퍼티 상세

$single_instance 보호되어 있는 정적으로 프로퍼티

protected static WDS_CMB2_Attached_Posts_Field $single_instance
리턴 WDS_CMB2_Attached_Posts_Field