apelissetti
Forum Replies Created
-
I Have same problem.
I do receive the mails from mailchimp but i never receive a mail from Subscriber discount.
Mailchimp for WooCommerce 2.6.1
WooCommerce 5.7.2
Subscriber Discounts for WooCommerce 1.5.2Can you help me? Thanks
Forum: Reviews
In reply to: [WP Image Zoom] Free version totally uselessI tried to use the basic version but it doesn’t work
https://distrettostupinigi.it/sociale/asse-mobilita-sostenibile-ciclabilita/
Can you help me?
Many thanksForum: Fixing WordPress
In reply to: notification email after media uploadHi Josh
the script (also the old one with fixed email) works only sometimesIf i stay logged don’t come the notification email
I have to log out and re-log with other user.
Do you have some solotuons for that?
Tks
Forum: Fixing WordPress
In reply to: notification email after media uploadsecond lesson…
to insert the logged in user’s email….what variable should i put here?
$headers = ‘From: My Name <[email protected]>’ . “\r\n”;
Forum: Fixing WordPress
In reply to: notification email after media uploadyesss
superI have to attend this forum to learn something more…
THANKS
Forum: Fixing WordPress
In reply to: notification email after media uploadForum: Fixing WordPress
In reply to: notification email after media uploadThank Josh
but doesn’t work in my functions.php file
Forum: Fixing WordPress
In reply to: notification email after media uploadi found this but doesn’t work
where i should put this code?add_action('admin_init', 'redirect_after_media_save'); function redirect_after_media_save() { global $pagenow; // when visiting the upload screen, we save the number of attachments if ( $pagenow == 'media-new.php' ) { $attachments_before = array_sum((array)wp_count_attachments()); update_option('count_attach_before', $attachments_before); } if ( $pagenow == 'upload.php' ) { // we are on media library page // get attachments count before and after upload $attachments_before = get_option('count_attach_before'); $attachments_after = array_sum((array)wp_count_attachments()); if ( // there are new files uploaded ( wp_get_referer() == admin_url('media-new.php') && $attachments_after > $attachments_before ) || // or we have just edited media file isset($_GET['posted']) ) { // redirect to desired location wp_mail('[email protected]', 'subject', 'message', $headers, $attachments ); exit; } } }
[Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]
Forum: Fixing WordPress
In reply to: notification email after media uploadI searched a lot but could not find a suitable plugin
I just want to add something like this
<?php wp_mail( $to, $subject, $message, $headers, $attachments ); ?>
at the end of the upload function, i don’t think that this code will introduce a security hole…or not?But i don’t find where to put this code…in my upload.php file
Thanks