PHP Class RWMB_Map_Field

Inheritance: extends RWMB_Field
Datei anzeigen Open project: rilwis/meta-box Class Usage Examples

Public Methods

Method Description
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

Method Details

admin_enqueue_scripts() static public method

Enqueue scripts and styles
static public admin_enqueue_scripts ( ) : void
return void

get_value() static public method

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.
return mixed Array(latitude, longitude, zoom)

html() static public method

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

normalize() static public method

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

the_value() static public method

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.
return mixed Field value