PHP Класс RWMB_Map_Field

Наследование: extends RWMB_Field
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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