PHP 클래스 SIS_Admin_Main, Simple-image-sizes

파일 보기 프로젝트 열기: Rahe/Simple-image-sizes 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( )
add_template ( ) : boolean Include the javascript template
get_available_crop ( ) : array Get all the available cropping
get_crop_position_label ( string $crop_position ) : string Return the crop position label from the slug
is_crop_position ( string $crop_position ) : boolean Check if the crop is available
localize_vars ( ) : array Localize the var for javascript
register_assets ( ) Register all the assets for the admin
thumbnail_rebuild ( $att_id, $thumbnails = null ) : array Rebuild the given attribute with the given thumbnails
wp_generate_attachment_metadata_custom ( integer $attachment_id, string $file, $thumbnails = null ) : mixed Generate post thumbnail attachment meta data.

메소드 상세

__construct() 공개 메소드

public __construct ( )

add_template() 공개 정적인 메소드

Include the javascript template
public static add_template ( ) : boolean
리턴 boolean

get_available_crop() 공개 정적인 메소드

Get all the available cropping
저자: Nicolas Juen
public static get_available_crop ( ) : array
리턴 array

get_crop_position_label() 공개 정적인 메소드

Return the crop position label from the slug
저자: Nicolas Juen
public static get_crop_position_label ( string $crop_position ) : string
$crop_position string
리턴 string

is_crop_position() 공개 정적인 메소드

Check if the crop is available
저자: Nicolas Juen
public static is_crop_position ( string $crop_position ) : boolean
$crop_position string
리턴 boolean

localize_vars() 공개 정적인 메소드

Localize the var for javascript
저자: Nicolas Juen
public static localize_vars ( ) : array
리턴 array

register_assets() 공개 정적인 메소드

Register all the assets for the admin
public static register_assets ( )

thumbnail_rebuild() 공개 정적인 메소드

Rebuild the given attribute with the given thumbnails
저자: Nicolas Juen
public static thumbnail_rebuild ( $att_id, $thumbnails = null ) : array
$att_id
$thumbnails
리턴 array

wp_generate_attachment_metadata_custom() 공개 정적인 메소드

Generate post thumbnail attachment meta data.
부터: 2.1.0
public static wp_generate_attachment_metadata_custom ( integer $attachment_id, string $file, $thumbnails = null ) : mixed
$attachment_id integer Attachment Id to process.
$file string Filepath of the Attached image.
리턴 mixed Metadata for attachment.