PHP 클래스 SIS_Admin_Post, Simple-image-sizes

파일 보기 프로젝트 열기: Rahe/Simple-image-sizes

공개 메소드들

메소드 설명
__construct ( )
a_featured_rebuild ( ) Rebuild the image size of a content featured image
a_thumbnail_rebuild ( ) : void Rebuild the image
add_actions_list ( $actions, WP_Post $object ) : string Add action in media row
add_field_regenerate ( array $fields, object $post ) : array Get a thumbnail name from its slug
add_thumbnail_name ( array $sizes ) : array Add the thumbnail name in the post insertion, based on new WP filter
admin_post_thumbnail_html ( $content, $ID ) : string Generate HTML on the featured image size
enqueue_assets ( string $hook_suffix = '' ) Register javascripts and css.
sizes_in_form ( array $form_fields, object $post ) : string Add the custom sizes to the image sizes in article edition

비공개 메소드들

메소드 설명
_get_thumbnail_name ( string $thumbnailSlug = '' ) : array Get a thumbnail name from its slug

메소드 상세

__construct() 공개 메소드

public __construct ( )

a_thumbnail_rebuild() 공개 정적인 메소드

Rebuild the image
저자: Nicolas Juen
public static a_thumbnail_rebuild ( ) : void
리턴 void

add_actions_list() 공개 정적인 메소드

Add action in media row
부터: 2.2
저자: Nicolas Juen
public static add_actions_list ( $actions, WP_Post $object ) : string
$actions : array of actions and content to display
$object WP_Post
리턴 string $actions

add_field_regenerate() 공개 정적인 메소드

Get a thumbnail name from its slug
부터: 2.3.1
저자: Nicolas Juen
public static add_field_regenerate ( array $fields, object $post ) : array
$fields array : the fields of the media
$post object : the post object
리턴 array

add_thumbnail_name() 공개 정적인 메소드

Add the thumbnail name in the post insertion, based on new WP filter
부터: 2.3
저자: Nicolas Juen
저자: radeno based on this post : http://www.wpmayor.com/wordpress-hacks/how-to-add-custom-image-sizes-to-wordpress-uploader/
public static add_thumbnail_name ( array $sizes ) : array
$sizes array
리턴 array

admin_post_thumbnail_html() 공개 정적인 메소드

Generate HTML on the featured image size
public static admin_post_thumbnail_html ( $content, $ID ) : string
$content
$ID
리턴 string

enqueue_assets() 공개 정적인 메소드

Register javascripts and css.
저자: Nicolas Juen
public static enqueue_assets ( string $hook_suffix = '' )
$hook_suffix string

sizes_in_form() 공개 정적인 메소드

Add the custom sizes to the image sizes in article edition
저자: Nicolas Juen
저자: Additional Image Sizes (zui)
public static sizes_in_form ( array $form_fields, object $post ) : string
$form_fields array
$post object
리턴 string