cleanup() static public method

static public cleanup ( $table, $directory )
Ejemplo n.º 1
0
 static function cleanup_after_install()
 {
     global $wpdb;
     $table = $wpdb->base_prefix . 'bp_album';
     $dir = get_site_option('bp_media_bp_album_importer_base_path');
     BPMediaImporter::cleanup($table, $dir);
     die;
 }
Ejemplo n.º 2
0
 static function cleanup_after_install()
 {
     global $wpdb;
     if (!check_ajax_referer('bpmedia-bpalbumimporter', 'rtm_wpnonce')) {
         wp_send_json(array('status' => false));
     }
     $table = $wpdb->base_prefix . 'bp_album';
     $dir = get_site_option('bp_media_bp_album_importer_base_path');
     BPMediaImporter::cleanup($table, $dir);
     die;
 }