PHP 클래스 RWMB_Media_Field

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

공개 메소드들

메소드 설명
add_actions ( ) Add actions
admin_enqueue_scripts ( ) Enqueue scripts and styles
get_attributes ( array $field, mixed $value = null ) : array Get the attributes for a field
html ( mixed $meta, array $field ) : string Get field HTML
normalize ( array $field ) : array Normalize parameters for field
print_templates ( ) Template for media item
save ( $new, $old, $post_id, $field ) Save meta value
value ( mixed $new, mixed $old, integer $post_id, array $field ) : array | mixed Get meta values to save

보호된 메소드들

메소드 설명
get_mime_extensions ( ) : array Get supported mime extensions.

메소드 상세

add_actions() 공개 정적인 메소드

Add actions
public static add_actions ( )

admin_enqueue_scripts() 공개 정적인 메소드

Enqueue scripts and styles
public static admin_enqueue_scripts ( )

get_attributes() 공개 정적인 메소드

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

get_mime_extensions() 보호된 정적인 메소드

Get supported mime extensions.
protected static get_mime_extensions ( ) : array
리턴 array

html() 공개 정적인 메소드

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

normalize() 공개 정적인 메소드

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

print_templates() 공개 정적인 메소드

Template for media item
public static print_templates ( )

save() 공개 정적인 메소드

Save meta value
public static save ( $new, $old, $post_id, $field )
$new
$old
$post_id
$field

value() 공개 정적인 메소드

Get meta values to save
public static value ( mixed $new, mixed $old, integer $post_id, array $field ) : array | mixed
$new mixed
$old mixed
$post_id integer
$field array
리턴 array | mixed