Viewing file: SlideshowPluginAJAX.php (886 B) -rw-rw-rw- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/**
* Class SlideshowAJAX is used to register AJAX functions
* as soon as possible, so they only leave a light footprint.
*
* @since 2.0.0
* @author: Stefan Boonstra
*/
class SlideshowPluginAJAX
{
/**
* Called as early as possible to be able to have as light as possible AJAX requests. Hooks can be added here as to
* have early execution.
*
* @since 2.0.0
*/
static function init()
{
// For the old pre-3.5 uploader
add_action('wp_ajax_slideshow_slide_inserter_search_query', array('SlideshowPluginSlideInserter', 'printSearchResults'));
add_action('wp_ajax_slideshow_jquery_image_gallery_load_stylesheet', array('SlideshowPluginSlideshowStylesheet', 'loadStylesheetByAJAX'));
add_action('wp_ajax_nopriv_slideshow_jquery_image_gallery_load_stylesheet', array('SlideshowPluginSlideshowStylesheet', 'loadStylesheetByAJAX'));
}
}
|