PHP Class RWMB_OEmbed_Field

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

Méthodes publiques

Méthode Description
add_actions ( ) Add actions
admin_enqueue_scripts ( ) Enqueue scripts and styles
format_single_value ( array $field, string $value ) : string Format a single value for the helper functions.
get_attributes ( array $field, mixed $value = null ) : array Get the attributes for a field
get_embed ( string $url ) : string Get embed html from url
html ( mixed $meta, array $field ) : string Get field HTML
wp_ajax_get_embed ( ) Ajax callback for returning oEmbed HTML

Method Details

add_actions() public static méthode

Add actions
public static add_actions ( )

admin_enqueue_scripts() public static méthode

Enqueue scripts and styles
public static admin_enqueue_scripts ( )

format_single_value() public static méthode

Format a single value for the helper functions.
public static format_single_value ( array $field, string $value ) : string
$field array Field parameter
$value string The value
Résultat string

get_attributes() public static méthode

Get the attributes for a field
public static get_attributes ( array $field, mixed $value = null ) : array
$field array
$value mixed
Résultat array

get_embed() public static méthode

Get embed html from url
public static get_embed ( string $url ) : string
$url string
Résultat string

html() public static méthode

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

wp_ajax_get_embed() public static méthode

Ajax callback for returning oEmbed HTML
public static wp_ajax_get_embed ( )