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; }
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; }