I use wp_date() function to convert and show dates with hours and minutes.
wp_date( 'Y/m/d - H:m:s',1598205923, 'Asia/Tehran' )
My problem is it shows Y/m/d correct. the hour is ok. but it shows m:s with a difference of about
I set up WordPress and my WordPress firewall (NinjaFirewall) before I updated my VPS' timezone.
I have since then updated the server's timezone and rebooted both Apache and the server, however NinjaFirewall is still displaying the old timezone on its logs.
How do I get the WordPress
I have a short-code that uses PHP to echo a time stamp ala: 1595140137
When I use that short-code as the default post title in new post, the post title changes with each page refresh, and in the browser title area, it just renders the short code characters. I have even double bracketed the short-
I need to automatically delete the users that are subscribed through a wpforms after 90 minutes of being created.
Users created this way are marked as "invitados" on the profile.
I found this answer on a previous question:
if(!wp_next_scheduled('my_dailyClearOut')
we use the learndash LMS and want to let users get access to lessons everyday at 6am with enrollment based access. For this purpose the LMS stores the enrollment time of every user in the db usermeta table in UNIX. So my question is: How can i change this value to the same date the user enrolled
I´m doing some setting to enable/disable a cron task and choose a time to run this task.
When I disable the cron task and enable it after without changed the time, my timestamp is in the past and make this error :
WP Control Plugin Result
In the default wordpress rss feed the element <pubDate> is
<pubDate><?php echo mysql2date( 'D, d M Y H:i:s +0000', get_post_time( 'Y-m-d H:i:s', true ), false ); ?></pubDate>
and gives a result of <pubDate>Tue, 12 May
By using get_the_time(Yd)===current_time(Yd), I can check and customize styling of posts published today.
How to check if post was published yesterday?
Any idea would be appreciated.
I have a custom post type with custom metaboxes (as seen on wptheming.com) and would like to make a query to show upcoming events, say in the sidebar, where past dates are left out.
I'm using this nifty timestamp function that makes the post date "1 day ago" and "five minutes ago" etc. However after a few days I want it to switch to the actual date it was written so for example: January 4th, 2020 at 4:02pm" or maybe just the option to add the time.
Here is the code