Exemplo n.º 1
0
 public function __construct($plugin_file_path)
 {
     parent::__construct($plugin_file_path);
     // Local AJAX handlers
     add_action('wp_ajax_wpmdbmf_prepare_determine_media', array($this, 'ajax_prepare_determine_media'));
     add_action('wp_ajax_wpmdbmf_determine_media_to_migrate_recursive', array($this, 'ajax_determine_media_to_migrate_recursive'));
     add_action('wp_ajax_wpmdbmf_migrate_media', array($this, 'ajax_migrate_media'));
     add_action('wp_ajax_wpmdbmf_remove_files_recursive', array($this, 'ajax_remove_files_recursive'));
 }
 public function __construct($plugin_file_path)
 {
     parent::__construct($plugin_file_path);
     // Remote AJAX handlers
     add_action('wp_ajax_nopriv_wpmdbmf_get_remote_media_info', array($this, 'respond_to_get_remote_media_info'));
     add_action('wp_ajax_nopriv_wpmdbmf_get_remote_attachment_batch', array($this, 'respond_to_get_remote_attachment_batch'));
     add_action('wp_ajax_nopriv_wpmdbmf_compare_remote_attachments', array($this, 'respond_to_compare_remote_attachments'));
     add_action('wp_ajax_nopriv_wpmdbmf_push_request', array($this, 'respond_to_push_request'));
     add_action('wp_ajax_nopriv_wpmdbmf_get_local_media_files_batch', array($this, 'respond_to_get_local_media_files_batch'));
     add_action('wp_ajax_nopriv_wpmdbmf_compare_local_media_files', array($this, 'respond_to_compare_local_media_files'));
     add_action('wp_ajax_nopriv_wpmdbmf_remove_local_media_files', array($this, 'respond_to_remove_local_media_files'));
 }