X7ROOT File Manager
Current Path:
/home/freights/public_html/wp-content/plugins/wp-email-capture/inc
home
/
freights
/
public_html
/
wp-content
/
plugins
/
wp-email-capture
/
inc
/
??
..
??
admin-sidebar.php
(8.53 KB)
??
core.php
(1.17 KB)
??
css
??
dashboard.php
(2.54 KB)
??
deprecated
??
display.php
(6.75 KB)
??
enqueue.php
(2.73 KB)
??
exportcsv.php
(1.23 KB)
??
functions.php
(13.13 KB)
??
gdpr.php
(11.25 KB)
??
gutenberg.php
(651 B)
??
help.php
(10.94 KB)
??
img
??
install.php
(1.72 KB)
??
js
??
options.php
(44.95 KB)
??
process.php
(10.78 KB)
??
security.php
(1.05 KB)
??
tabledata.php
(3.49 KB)
??
tempdata.php
(970 B)
??
tinymce.php
(1.1 KB)
??
tracking.php
(5.12 KB)
??
widget.php
(2.28 KB)
Editing: exportcsv.php
<?php defined( 'ABSPATH' ) or die(); /** * Function that exports the captured lists in a CSV format. * * @return void */ function wp_email_capture_export() { global $wpdb; $delimeter = get_option( 'wp_email_capture_name_delimeter' ); $charset = get_bloginfo( 'charset' ); if ( !$delimeter ) { $delimeter = ","; } $csv_output = ""; if ( strtoupper( $charset ) == 'UTF-8' ) { $csv_output .= "\xEF\xBB\xBF"; //UTF-8 BOM; } $csv_output .= __( 'Name', 'wp-email-capture' ). $delimeter .__( 'Email', 'wp-email-capture' ); $csv_output .= "\n"; $registered_members_sql = apply_filters( 'wpec_change_export_sql', "SELECT name, email FROM " . WP_EMAIL_CAPTURE_REGISTERED_MEMBERS_TABLE ); $registered_members = $wpdb->get_results( $registered_members_sql ); foreach ( $registered_members as $member ) { $csv_output .= $member->name .$delimeter. $member->email ."\n"; } $file_prefix = 'WP_Email_Capture'; $filename = apply_filters( 'wpec_change_csv_filename', $file_prefix."_".date( "Y-m-d_H-i", time() )); header( "Content-type: application/vnd.ms-excel charset=" . $charset ); header( "Content-disposition: filename=" . $filename . ".csv" ); print $csv_output; exit; }
Upload File
Create Folder