Метод |
Описание |
|
action_init ( ) |
Register shortcodes |
|
admin_enqueue ( ) |
Enqueue all assets used for admin view. Localize scripts. |
|
admin_init ( ) |
Register settings screen and validation callback |
|
admin_notices ( ) |
Notify the user if the API credentials have not been entered |
|
ajax_check ( ) |
Check against a nonce to limit exposure, all AJAX handlers must use this |
|
ajax_download ( ) |
Process download, return image ID to use as featured image. |
|
ajax_error ( $message = null, $data = [] ) |
Emit an error result via AJAX |
|
ajax_get_image_id ( ) |
Look up an attachment ID from a preview URL |
|
ajax_sign_request ( ) |
Process signing request |
|
ajax_success ( $message = null, $data = [] ) |
Emit a success message via AJAX |
|
configured ( ) : boolean |
Is this module configured? |
|
get_attachment_id ( string $url ) : integer |
Look up an attachment ID based on a given Ooyala thumbnail URL |
|
get_settings ( ) : array |
Get the user's saved settings for this plugin, filled in with default values. |
|
instance ( ) |
|
|
is_default ( string $field, mixed $value ) : boolean |
Determine if the supplied shortcode param is the default for the player |
|
media_buttons ( $editor_id = 'content' ) |
Add "Ooyala. |
|
print_media_templates ( ) |
Include all of the templates used by Backbone views |
|
settings_fields ( ) |
Emit settings fields |
|
shortcode ( $atts, $content = null ) |
Render the Ooyala shortcode |
|
validate_settings ( $settings ) |
Validate option value |
|