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: tempdata.php
<?php /** * Delete the members in the tempoarary members table. * @return void */ function wp_email_capture_truncate() { global $wpdb; $truncate_temp_sql = "TRUNCATE " . WP_EMAIL_CAPTURE_TEMP_MEMBERS_TABLE; $truncated_table = $wpdb->query($truncate_temp_sql); } /** * Delete the members of the registered members table. * @return void */ function wp_email_capture_delete() { global $wpdb; $truncate_registered_sql = "TRUNCATE " . WP_EMAIL_CAPTURE_REGISTERED_MEMBERS_TABLE; $truncated_registered = $wpdb->query($truncate_registered_sql); } /** * Count the members in the temporary members table. * @return int The number of members in the tempoarary members table. */ function wp_email_capture_count_temp() { global $wpdb; $count_temp_sql = 'SELECT COUNT(*) FROM '. WP_EMAIL_CAPTURE_TEMP_MEMBERS_TABLE; $temp_members = $wpdb->get_var($count_temp_sql); return $temp_members; }
Upload File
Create Folder