Tag Info

New answers tagged


Personally, I would have just one (WordPress) cron event that fired daily. All queued emails are stored in a table/option. Now all you do in your cron handler is grab the next email in the queue, process it, and then delete it. There. One email a day. You could have the option in the UI that allows users to schedule emails to set a priority, so that it can ...


Try this. I've tested it and it works although your questions is not so clear (snippet VS description). function wpkse_144405_on_post_publish( $ID, $post ) { $users = get_users( array( 'fields' => array( 'user_email' ) ) ); $email_subject = 'New post has been published'; $message .= 'New post has been published: ' . $post->post_title ...


This will don't work on functions.php, you need to put this code inside plugin. if you don't now to make a plugin for this just use this link don't forget to take the update code of this function form here


This is a feature since 4.3.0, as part of WordPress's improved security measures (check out the source on the WordPress code reference). You can disable it with the following filter: add_filter( 'send_email_change_email', '__return_false' );


It's a bit of a hack but you can also use the Reply To header tag: $headers = 'Reply-To: "Aaren A. Aarenson" <aaron@somemail.com>'; Sadly this adds the email address to the From list, and replying means you will have to manually remove the address configured in the wp_mail_from filter.


yes that's possible, you can create your custom post type and use MySQL query to fetch from csv file, and use insert into post function within the loop. you can use LOAD DATA INFILE query to fetch from excel and then use wp insert post function to insert into db. the query will look like:- LOAD DATA LOCAL INFILE 'abc.csv' INTO TABLE abc FIELDS TERMINATED BY ...

Top 50 recent answers are included