PHP 클래스 RWMB_Map_Field

상속: extends RWMB_Field
파일 보기 프로젝트 열기: rilwis/meta-box 1 사용 예제들

공개 메소드들

메소드 설명
admin_enqueue_scripts ( ) : void Enqueue scripts and styles
get_value ( array $field, array $args = [], integer | null $post_id = null ) : mixed Get the field value The difference between this function and 'meta' function is 'meta' function always returns the escaped value of the field saved in the database, while this function returns more meaningful value of the field
html ( mixed $meta, array $field ) : string Get field HTML
normalize ( array $field ) : array Normalize parameters for field
the_value ( array $field, array $args = [], integer | null $post_id = null ) : mixed Output the field value Display Google maps

메소드 상세

admin_enqueue_scripts() 정적인 공개 메소드

Enqueue scripts and styles
static public admin_enqueue_scripts ( ) : void
리턴 void

get_value() 정적인 공개 메소드

Get the field value The difference between this function and 'meta' function is 'meta' function always returns the escaped value of the field saved in the database, while this function returns more meaningful value of the field
static public get_value ( array $field, array $args = [], integer | null $post_id = null ) : mixed
$field array Field parameters
$args array Not used for this field
$post_id integer | null Post ID. null for current post. Optional.
리턴 mixed Array(latitude, longitude, zoom)

html() 정적인 공개 메소드

Get field HTML
static public html ( mixed $meta, array $field ) : string
$meta mixed
$field array
리턴 string

normalize() 정적인 공개 메소드

Normalize parameters for field
static public normalize ( array $field ) : array
$field array
리턴 array

the_value() 정적인 공개 메소드

Output the field value Display Google maps
static public the_value ( array $field, array $args = [], integer | null $post_id = null ) : mixed
$field array Field parameters
$args array Additional arguments. Not used for these fields.
$post_id integer | null Post ID. null for current post. Optional.
리턴 mixed Field value