laowei
Forum Replies Created
-
AuthorPosts
-
laoweiParticipantThis reply has been marked as private.laoweiParticipantThis reply has been marked as private.laoweiParticipant
I solved the above problem through this post https://www.shamimsplugins.com/support/topic/new-update-crashed-site/#post-18038, but my previous news and announcements are not visible in the new version. And there is no button to update the database? What should I do?
laoweiParticipantThis reply has been marked as private.laoweiParticipantThis reply has been marked as private.February 2, 2018 at 7:54 pm in reply to: How to automatically send messages to newly registered users? #10570laoweiParticipantHello, according to your way is normal.
January 30, 2018 at 4:26 pm in reply to: How to automatically send messages to newly registered users? #10439laoweiParticipantLine 726 in the plug-in file functions.php
$time = strtotime( $post->post_date_gmt );
change into
$time = strtotime( $m_time );
Will normally show the local time. Otherwise, no matter the time zone to change the country, will be subject to the United States time!So, when users in other countries use 8 hours more, it is a flaw?
laoweiParticipantThank you very much, I solve this problem.
January 28, 2018 at 10:19 pm in reply to: How to automatically send messages to newly registered users? #10356laoweiParticipantMy time zone is set shanghai, and my other content shows normal.
Only Front End PM PRO time is eight hours ago.
very strange
Finally, thank you for your enthusiastic reply
January 28, 2018 at 10:07 pm in reply to: How to automatically send messages to newly registered users? #10350laoweiParticipantOne more problem: the plug-in shows all the time is wrong.
A difference of 8 hours from my local time. I am in China.January 28, 2018 at 7:38 pm in reply to: How to automatically send messages to newly registered users? #10344laoweiParticipantOne more problem: the plug-in shows all the time is wrong.
A difference of 8 hours from my local time.
I am in China.January 28, 2018 at 7:14 pm in reply to: How to automatically send messages to newly registered users? #10341laoweiParticipantfunction fep_cus_user_post_send_messaage($post_id){ global $post_id; $post = get_post($post_id); $author = get_userdata($post->post_author); $author_id = $author->ID; $post_title = $post->post_title; $post_link = get_permalink($post); if ($post->post_type !== 'post') return; if ( ! function_exists( 'fep_send_message' ) ) return; // Prepare message data $message = array( 'message_title' => 'title', //change with message title 'message_content' => 'xxx', //change with message content 'message_to_id' => $user_id ); $override = array( 'post_author' => 1, //change with message sender id ); // Send message fep_send_message( $message, $override ); } add_action( 'pending_to_trash', 'fep_cus_user_post_send_messaage', 10, 1 );
This does not seem to work
January 28, 2018 at 6:35 pm in reply to: How to automatically send messages to newly registered users? #10338laoweiParticipantThank you for your response!
f a user’s article from pending review has been released, how can we send a message?
-
AuthorPosts