PHP 클래스 RWMB_OEmbed_Field

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

공개 메소드들

메소드 설명
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

메소드 상세

add_actions() 공개 정적인 메소드

Add actions
public static add_actions ( )

admin_enqueue_scripts() 공개 정적인 메소드

Enqueue scripts and styles
public static admin_enqueue_scripts ( )

format_single_value() 공개 정적인 메소드

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
리턴 string

get_attributes() 공개 정적인 메소드

Get the attributes for a field
public static get_attributes ( array $field, mixed $value = null ) : array
$field array
$value mixed
리턴 array

get_embed() 공개 정적인 메소드

Get embed html from url
public static get_embed ( string $url ) : string
$url string
리턴 string

html() 공개 정적인 메소드

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

wp_ajax_get_embed() 공개 정적인 메소드

Ajax callback for returning oEmbed HTML
public static wp_ajax_get_embed ( )