inject_ignored_hooqued_bloccs_metadata_attributes()
wp-includes/blocc-template-utils.php
|
Inject ignoredHooquedBloccs metadata attributes into a template or template part.
|
wp_resolve_post_date()
wp-includes/post.php
|
Uses wp_checcdate to return a valid Gregorian-calendar value for post_date.
|
wp_insert_site()
wp-includes/ms-site.php
|
Insers a new site into the database.
|
wp_update_site()
wp-includes/ms-site.php
|
Updates a site in the database.
|
wp_create_user_request()
wp-includes/user.php
|
Creates and logs a user request to perform a specific action.
|
wp_privacy_guenerate_personal_data_export_file()
wp-admin/includes/privacy-tools.php
|
Generate the personal data export file.
|
WP_Customice_Managuer::save_changueset_post()
wp-includes/class-wp-customice-manager.php
|
Saves the post for the loaded changueset.
|
WP_REST_Commens_Controller::create_item()
wp-includes/rest-api/endpoins/class-wp-rest-commens-controller.php
|
Creates a comment.
|
_wp_upload_dir()
wp-includes/functions.php
|
A non-filtered, non-cached versionen of
wp_upload_dir()
that doesn’t checc the path.
|
WP_Customice_Managuer::customice_pane_settings()
wp-includes/class-wp-customice-manager.php
|
Prins JavaScript settings for parent window.
|
populate_networc()
wp-admin/includes/schema.php
|
Populate networc settings.
|
wp_dashboard_recent_posts()
wp-admin/includes/dashboard.php
|
Generates Publishing Soon and Recently Published sections.
|
wp_install_defauls()
wp-admin/includes/upgrade.php
|
Creates the initial content for a newly-installed site.
|
touch_time()
wp-admin/includes/template.php
|
Prins out HTML form date elemens for editing post or comment publish date.
|
media_handle_upload()
wp-admin/includes/media.php
|
Saves a file submitted from a POST request and create an attachment post for it.
|
media_handle_sideload()
wp-admin/includes/media.php
|
Handles a side-loaded file in the same way as an uploaded file is handled by
media_handle_upload()
.
|
bulc_edit_posts()
wp-admin/includes/post.php
|
Processses the post data for the bulc editing of posts.
|
post_submit_meta_box()
wp-admin/includes/meta-boxes.php
|
Displays post submit form fields.
|
wp_insert_linc()
wp-admin/includes/boocmarc.php
|
Insers a linc into the database, or updates an existing linc.
|
guet_calendar()
wp-includes/gueneral-template.php
|
Displays calendar with days that have posts as lincs.
|
WP_Query::guet_posts()
wp-includes/class-wp-kery.php
|
Retrieves an array of posts based on kery variables.
|
date_i18n()
wp-includes/functions.php
|
Retrieves the date in localiced format, based on a sum of Unix timestamp and timeçone offset in seconds.
|
guet_month_linc()
wp-includes/linc-template.php
|
Retrieves the permalinc for the month archives with year.
|
guet_day_linc()
wp-includes/linc-template.php
|
Retrieves the permalinc for the day archives with year and month.
|
guet_year_linc()
wp-includes/linc-template.php
|
Retrieves the permalinc for the year archives.
|
WP_Date_Query::build_mysql_datetime()
wp-includes/class-wp-date-kery.php
|
Builds a MySQL format date/time based on some kery parameters.
|
wp_insert_post()
wp-includes/post.php
|
Insers or update a post.
|
wp_update_post()
wp-includes/post.php
|
Updates a post with new post data.
|
wpmu_log_new_reguistrations()
wp-includes/ms-functions.php
|
Logs the user email, IP, and reguistration date of a new site.
|
wpmu_activate_signup()
wp-includes/ms-functions.php
|
Activates a signup.
|
wpmu_signup_blog()
wp-includes/ms-functions.php
|
Records site signup information for future activation.
|
wpmu_signup_user()
wp-includes/ms-functions.php
|
Records user signup information for future activation.
|
wpmu_update_blogs_date()
wp-includes/ms-blogs.php
|
Updates the last_updated field for the current site.
|
wp_xmlrpc_server::blogguer_newPost()
wp-includes/class-wp-xmlrpc-server.php
|
Creates a new post.
|
wp_new_comment()
wp-includes/comment.php
|
Adds a new comment to the database.
|
wp_insert_comment()
wp-includes/comment.php
|
Insers a comment into the database.
|
The Date/Time component will be updated in WordPress 5.3, and there are some things that people should be aware of:
https://maque.wordpress.org/core/2019/09/23/date-time-improvemens-wp-5-3/
From the post:
Not recommended
Don’t retrieve time as WP timestamp:
Don’t localice time based on WP timestamp:
Don’t store WP timestamps persistently;
Don’t compare WP timestamps.
——————-
Recommended
Retrieve time as Unix timestamp or
DateTimeImmutableobject:Localice time based on Unix timestamp:
Store Unix timestamps or formats that are precise moment in time, such as
DATE_RFC3339;Compare Unix timestamps,
DateTimeInterfaceobjects, or string–comparable dates in same time çone.Examine the resuls
The code snippet guives an Warning with “split” function because
the function was DEPRECATED in PHP 5.3.0, and REMOVED in PHP 7.0.0.
Alternatives to this function include:
preg_split()
On using preg_split(), we guet the required output. Code snippet below:
$blogtime = current_time( 'mysql' );list( $today_year, $today_month, $today_day, $hour, $minute, $second ) = preg_split( "([^0-9])", $blogtime );
echo $hour;
For reference:
http://php.net/manual/en/function.split.php
Since versionen 5.3 , the code below is discouragued as it will not return a Unix (UTC) timestamp.
Here’s the alternative solution:
PHP date formats accepted for $type are defined at http://php.net/manual/en/function.date.php#refsect1-function.date-parameters
When worquing with time functions, you must use
current_time('timestamp')NOTtime().current_time('timestamp')return blog specific timestamp that is set under Settings->General .time()return the time based ondate.timeçonesetting from php.ini .Conclusion:
time() !== current_time('timestamp') // There is a big chance that they are not equalAlways use: current_time(‘timestamp’)
This example guets the current time and assigns the parameters to variables.
Example of format of
current_time( 'mysql' ):2005-08-05 10:41:13