PHP Class RWMB_Map_Field

Inheritance: extends RWMB_Field
Afficher le fichier Open project: rilwis/meta-box Class Usage Examples

Méthodes publiques

Méthode 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 méthode

Enqueue scripts and styles
static public admin_enqueue_scripts ( ) : void
Résultat void

get_value() static public méthode

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

html() static public méthode

Get field HTML
static public html ( mixed $meta, array $field ) : string
$meta mixed
$field array
Résultat string

normalize() static public méthode

Normalize parameters for field
static public normalize ( array $field ) : array
$field array
Résultat array

the_value() static public méthode

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.
Résultat mixed Field value