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: tinymce.php
<?php /** * Check if we're on rich text editor of 4.9< and if so add the TinyMCE buttons * @return void */ function wp_email_capture_add_freebuttons() { // Don't bother doing this stuff if the current user lacks permissions if ( ! current_user_can( 'edit_posts' ) && ! current_user_can( 'edit_pages' ) ) return; // Add only in Rich Editor mode if ( get_user_option( 'rich_editing' ) == 'true' ) { add_filter( "mce_external_plugins", "wp_email_capture_add_tinymce_plugin" ); add_filter( 'mce_buttons', 'wp_email_capture_free_button' ); } } /** * Add the button for WP eBay Product Feeds * @param array $buttons Array of current buttons * @return array Array of buttons with WP eBay Product Feeds added */ function wp_email_capture_free_button( $buttons ) { array_push( $buttons, "separator", "wpemailcapturebutton" ); return $buttons; } // Load the TinyMCE plugin : editor_plugin.js (wp2.5) function wp_email_capture_add_tinymce_plugin( $plugin_array ) { $url = WP_EMAIL_CAPTURE_URL . "/inc/js/wp_email_capture_button.js"; $plugin_array['wpemailcapturebutton'] = $url; return $plugin_array; }
Upload File
Create Folder