bp_core_current_time( bool $gmt = true, string $type = 'mysql' )
Get the current GMT time to save into the DB.
Parameters #Parameters
- $gmt
-
(bool) (Optional) True to use GMT (rather than local) time. Default: true.
Default value: true
- $type
-
(string) (Optional) See the 'type' parameter in current_time(). Default: 'mysql'.
Default value: 'mysql'
Return #Return
(string) Current time in 'Y-m-d h:i:s' format.
Source #Source
File: bp-core/bp-core-functions.php
function bp_core_current_time( $gmt = true, $type = 'mysql' ) { /** * Filters the current GMT time to save into the DB. * * @since 1.2.6 * * @param string $value Current GMT time. */ return apply_filters( 'bp_core_current_time', current_time( $type, $gmt ) ); }
Expand full source code Collapse full source code View on Trac
Related #Related
Uses #Uses
Uses | Description |
---|---|
bp-core/bp-core-functions.php: bp_core_current_time |
Filters the current GMT time to save into the DB. |
Used By #Used By
Used By | Description |
---|---|
bp-core/bp-core-functions.php: bp_add_optout() |
Add a new BP_Optout. |
bp-core/bp-core-functions.php: bp_email_unsubscribe_handler() |
Handles unsubscribing user from notification emails. |
bp-core/bp-core-functions.php: bp_core_record_activity() |
Listener function for the logged-in user’s ‘last_activity’ metadata. |
bp-core/bp-core-functions.php: bp_core_time_diff() |
Calculate the human time difference between two dates. |
bp-core/classes/class-bp-invitation.php: BP_Invitation::mark_sent() |
Mark specific invitations as sent by invitation ID. |
bp-core/classes/class-bp-invitation.php: BP_Invitation::mark_sent_by_data() |
Mark invitations as sent that are found by user_id, inviter_id, item id, and optional secondary item id, and class name. |
bp-core/classes/class-bp-invitation.php: BP_Invitation::mark_accepted() |
Mark specific invitations as accepted by invitation ID. |
bp-core/classes/class-bp-invitation.php: BP_Invitation::mark_accepted_by_data() |
Mark invitations as accepted that are found by user_id, inviter_id, item id, and optional secondary item id, and class name. |
bp-core/classes/class-bp-invitation-manager.php: BP_Invitation_Manager::add_invitation() |
Add an invitation to a specific user, from a specific user, related to a specific class. |
bp-core/classes/class-bp-invitation-manager.php: BP_Invitation_Manager::add_request() |
Add a request to an item for a specific user, related to a specific class. |
bp-core/classes/class-bp-invitation-manager.php: BP_Invitation_Manager::accept_invitation() |
Accept invitation, based on provided filter parameters. |
bp-core/classes/class-bp-invitation-manager.php: BP_Invitation_Manager::accept_request() |
Accept invitation, based on provided filter parameters. |
bp-core/deprecated/1.9.php: bp_core_add_notification() |
Add a notification for a specific user, from a specific component. |
bp-activity/classes/class-bp-akismet.php: BP_Akismet::update_activity_akismet_meta() |
Update activity meta after an automatic spam check (not user-initiated). |
bp-activity/bp-activity-notifications.php: bp_activity_at_mention_add_notification() |
Notify a member when their nicename is mentioned in an activity stream item. |
bp-activity/bp-activity-notifications.php: bp_activity_update_reply_add_notification() |
Notify a member one of their activity received a reply. |
bp-activity/bp-activity-notifications.php: bp_activity_comment_reply_add_notification() |
Notify a member one of their activity comment received a reply. |
bp-activity/bp-activity-functions.php: bp_activity_add() |
Add an activity item. |
bp-blogs/bp-blogs-functions.php: bp_blogs_publish_post_activity_meta() |
Record activity metadata about a published blog post. |
bp-blogs/bp-blogs-functions.php: bp_blogs_comment_sync_activity_comment() |
Update Activity and blogs meta and eventually sync comment with activity comment |
bp-blogs/bp-blogs-functions.php: bp_blogs_record_blog() |
Make BuddyPress aware of a new site so that it can track its activity. |
bp-blogs/bp-blogs-activity.php: bp_blogs_record_activity() |
Record blog-related activity to the activity stream. |
bp-members/bp-members-notifications.php: bp_members_invitations_accepted_invitation_notification() |
Notify one use that another user has accepted their site membership invitation. |
bp-members/classes/class-bp-rest-members-endpoint.php: BP_REST_Members_Endpoint::user_data() |
Method to facilitate fetching of user data. |
bp-members/bp-members-template.php: bp_get_member_class() |
Return the row class of the current member in the loop. |
bp-members/bp-members-functions.php: bp_members_invitations_invite_user() |
Invite a user to a BP community. |
bp-members/bp-members-functions.php: bp_update_user_last_activity() |
Update a user’s last activity. |
cli/src/group.php: Group::create() |
Create a group. |
cli/src/group-invite.php: Group_Invite::create() |
Invite a member to a group. |
cli/src/activity.php: Activity::create() |
Create an activity item. |
cli/src/messages.php: Messages::create() |
Add a message. |
cli/src/messages.php: Messages::send_notice() |
Send a notice. |
cli/src/notification.php: Notification::create() |
Create a notification item. |
bp-templates/bp-nouveau/includes/messages/functions.php: bp_nouveau_get_message_date() | |
bp-messages/classes/class-bp-messages-message.php: BP_Messages_Message::__construct() |
Constructor. |
bp-messages/classes/class-bp-messages-notice.php: BP_Messages_Notice::save() |
Saves a notice. |
bp-messages/bp-messages-notifications.php: bp_messages_message_sent_add_notification() |
Send notifications to message recipients. |
bp-messages/bp-messages-functions.php: messages_new_message() |
Create a new message. |
bp-messages/bp-messages-functions.php: messages_send_notice() |
Send a notice. |
bp-groups/classes/class-bp-rest-group-membership-endpoint.php: BP_REST_Group_Membership_Endpoint::create_item() |
Add member to a group. |
bp-groups/classes/class-bp-groups-member.php: BP_Groups_Member::accept_invite() |
Mark a pending invitation as accepted. |
bp-groups/classes/class-bp-groups-member.php: BP_Groups_Member::accept_request() |
Confirm a membership request. |
bp-groups/classes/class-bp-groups-invitation-manager.php: BP_Groups_Invitation_Manager::run_acceptance_action() |
This is where custom actions are added to run when an invitation or request is accepted. |
bp-groups/bp-groups-activity.php: groups_post_update() |
Post an Activity status update affiliated with a group. |
bp-groups/bp-groups-activity.php: bp_groups_group_details_updated_add_activity() |
Add an activity item when a group’s details are updated. |
bp-groups/bp-groups-activity.php: groups_record_activity() |
Record an activity item related to the Groups component. |
bp-groups/actions/create.php: groups_action_create_group() |
Catch and process group creation form submissions. |
bp-groups/bp-groups-functions.php: groups_send_membership_request() |
Create a group membership request. |
bp-groups/bp-groups-functions.php: groups_invite_user() |
Invite a user to a group. |
bp-groups/bp-groups-functions.php: groups_join_group() |
Add a user to a group. |
bp-groups/bp-groups-functions.php: groups_update_last_activity() |
Update the last_activity meta value for a given group. |
bp-groups/bp-groups-functions.php: groups_create_group() |
Create a group. |
bp-groups/bp-groups-functions.php: groups_edit_group_settings() |
Edit the base details for a group. |
bp-xprofile/classes/class-bp-xprofile-profiledata.php: BP_XProfile_ProfileData::save() |
Save the data for the XProfile field. |
bp-xprofile/bp-xprofile-activity.php: xprofile_record_activity() |
Records activity for the logged in user within the profile component so that it will show in the users activity stream (if installed). |
bp-xprofile/bp-xprofile-activity.php: bp_xprofile_updated_profile_activity() |
Add an activity item when a user has updated his profile. |
bp-notifications/bp-notifications-functions.php: bp_notifications_add_notification() |
Add a notification for a specific user, from a specific component. |
bp-themes/bp-default/_inc/ajax.php: bp_dtheme_ajax_messages_send_reply() |
Send a private message reply to a thread via a POST request. |
bp-friends/bp-friends-activity.php: friends_record_activity() |
Record an activity item related to the Friends component. |
bp-friends/bp-friends-functions.php: friends_add_friend() |
Create a new friendship. |
bp-friends/bp-friends-notifications.php: bp_friends_friendship_requested_notification() |
Notify one use that another user has requested their virtual friendship. |
bp-friends/bp-friends-notifications.php: bp_friends_add_friendship_accepted_notification() |
Notify a member when another member accepts their virtual friendship request. |
bp-friends/classes/class-bp-friends-friendship.php: BP_Friends_Friendship::accept() |
Mark a friendship as accepted. |
Changelog #Changelog
Version | Description |
---|---|
1.2.6 | Introduced. |