PHP Класс SIS_Admin_Post, 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