PHP 클래스 Cuztom_Meta

부터: 1.5
저자: Gijs Jorissen
파일 보기 프로젝트 열기: gizburdt/cuztom 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$callback
$data
$description
$fields
$id
$title

공개 메소드들

메소드 설명
__construct ( string | array $title ) Construct for all meta types, creates title (and description)
build ( array $data, $parent = null ) : array This array builds the complete array with the right key => value pairs
callback ( $object, object $data = [] ) : mixed Main callback for meta
edit_form_tag ( ) : mixed Adds multipart support to form
get_meta_type ( ) : string Check what kind of meta we're dealing with
is_accordion ( array $data ) : boolean Checks if the given array is an accordion
is_bundle ( array $data ) : boolean Checks if the given array is a bundle
is_meta_type ( $meta_type ) : string Check what kind of meta we're dealing with
is_tabs ( array $data ) : boolean Checks if the given array are tabs
save ( $object_id, $values ) Normal save method to save all the fields in a metabox Metabox and User Meta rely on this method

메소드 상세

__construct() 공개 메소드

Construct for all meta types, creates title (and description)
부터: 1.6.4
저자: Gijs Jorissen
public __construct ( string | array $title )
$title string | array

build() 공개 메소드

This array builds the complete array with the right key => value pairs
부터: 1.1
저자: Gijs Jorissen
public build ( array $data, $parent = null ) : array
$data array
리턴 array

callback() 공개 메소드

Main callback for meta
부터: 0.2
저자: Gijs Jorissen
public callback ( $object, object $data = [] ) : mixed
$data object
리턴 mixed

edit_form_tag() 정적인 공개 메소드

Adds multipart support to form
부터: 0.2
저자: Gijs Jorissen
static public edit_form_tag ( ) : mixed
리턴 mixed

get_meta_type() 공개 메소드

Check what kind of meta we're dealing with
부터: 1.5
저자: Gijs Jorissen
public get_meta_type ( ) : string
리턴 string

is_accordion() 정적인 공개 메소드

Checks if the given array is an accordion
부터: 1.3
저자: Gijs Jorissen
static public is_accordion ( array $data ) : boolean
$data array
리턴 boolean

is_bundle() 정적인 공개 메소드

Checks if the given array is a bundle
부터: 1.3
저자: Gijs Jorissen
static public is_bundle ( array $data ) : boolean
$data array
리턴 boolean

is_meta_type() 공개 메소드

Check what kind of meta we're dealing with
부터: 2.3
저자: Gijs Jorissen
public is_meta_type ( $meta_type ) : string
리턴 string

is_tabs() 정적인 공개 메소드

Checks if the given array are tabs
부터: 1.3
저자: Gijs Jorissen
static public is_tabs ( array $data ) : boolean
$data array
리턴 boolean

save() 공개 메소드

Normal save method to save all the fields in a metabox Metabox and User Meta rely on this method
부터: 2.6
저자: Gijs Jorissen
public save ( $object_id, $values )

프로퍼티 상세

$callback 공개적으로 프로퍼티

public $callback

$data 공개적으로 프로퍼티

public $data

$description 공개적으로 프로퍼티

public $description

$fields 공개적으로 프로퍼티

public $fields

$id 공개적으로 프로퍼티

public $id

$title 공개적으로 프로퍼티

public $title