Contents
bp_core_current_time( bool $gmt = true, string $type = 'mysql' )
Get the current GMT time to save into the DB.
Description
Parameters
- $gmt
-
(Optional) True to use GMT (rather than local) time. Default: true.
Default value: true
- $type
-
(Optional) See the 'type' parameter in current_time(). Default: 'mysql'.
Default value: 'mysql'
Return
(string) Current time in 'Y-m-d h:i:s' format.
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 BuddyPress 1.2.6 * * @param string $value Current GMT time. */ return apply_filters( 'bp_core_current_time', current_time( $type, $gmt ) ); }
Changelog
Version | Description |
---|---|
BuddyPress 1.2.6 | Introduced. |
Related
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 | Description |
---|---|
bp-document/bp-document-functions.php: bp_document_update_folder_modified_date() |
This function will rename the folder name. |
bp-document/bp-document-functions.php: bp_document_move_folder_to_folder() |
This function will move folder to another destination folder id. |
bp-document/bp-document-functions.php: bp_document_update_privacy() |
Update document privacy with nested level. |
bp-document/bp-document-functions.php: bp_document_move_document_to_folder() |
This function will document into the folder. |
bp-document/bp-document-functions.php: bp_document_rename_file() |
This function will rename the document name. |
bp-document/bp-document-functions.php: bp_document_rename_folder() |
This function will rename the folder name. |
bp-document/bp-document-functions.php: bp_folder_add() |
Add folder item. |
bp-document/bp-document-functions.php: bp_document_add() |
Add an document item. |
bp-document/bp-document-functions.php: bp_document_add_handler() |
Document add handler function |
bp-templates/bp-nouveau/includes/groups/ajax.php: bp_nouveau_ajax_groups_send_message() |
Send group message to group members. |
bp-templates/bp-nouveau/includes/groups/ajax.php: bp_groups_messages_new_message() |
Create New Group Message. |
bp-messages/bp-messages-filters.php: bp_messages_add_user_to_group_message_thread() |
Remove member to Group thread when h/she joined the group. |
bp-messages/bp-messages-filters.php: bp_messages_remove_user_to_group_message_thread() |
Add member to Group thread when h/she joined the group. |
bp-messages/bp-messages-filters.php: bp_group_messages_groups_membership_accepted() |
Add new message to a existing group thread when someone membership is accepted in group. |
bp-messages/bp-messages-filters.php: bp_group_messages_join_new_member() |
Add new message to a existing group thread when someone join in group. |
bp-messages/bp-messages-filters.php: bp_group_messages_remove_group_member_from_thread() |
Add new message to a existing group thread when someone remove from group. |
bp-messages/bp-messages-filters.php: bp_group_messages_accept_new_member() |
Add new message to group thread if new member joined the group. |
bp-messages/bp-messages-filters.php: bp_group_messages_banned_member() |
Add new message to group thread when someone from the group ban. |
bp-messages/bp-messages-filters.php: bp_group_messages_admin_banned_member() |
Add new message to group thread when someone from the group ban. |
bp-messages/bp-messages-filters.php: bp_group_messages_unbanned_member() |
Add new message to group thread when someone from the group unban. |
bp-messages/classes/class-bp-rest-group-messages-endpoint.php: BP_REST_Group_Messages_Endpoint::create_item() |
Init a Messages Thread or add a reply to an existing Thread. |
bp-messages/classes/class-bp-rest-group-messages-endpoint.php: BP_REST_Group_Messages_Endpoint::bp_rest_groups_messages_new_message() |
Create New Group Message. |
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-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-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-activity/bp-activity-template.php: bp_activity_user_can_edit() |
Determine if the current user can edit an activity item. |
bp-activity/classes/class-bp-rest-activity-endpoint.php: BP_REST_Activity_Endpoint::update_item() |
Update an activity. |
bp-forums/activity.php: BBP_BuddyPress_Activity::record_activity() |
Wrapper for recoding Forums actions to the BuddyBoss activity stream |
bp-media/bp-media-functions.php: bp_media_import_buddyboss_media_tables() |
Import BuddyBoss Media plugin db tables into Media Component |
bp-media/bp-media-functions.php: bp_album_add() |
Add album item. |
bp-media/bp-media-functions.php: bp_media_add() |
Add an media item. |
bp-notifications/bp-notifications-functions.php: bp_notifications_add_notification() |
Add a notification for a specific user, from a specific component. |
bp-blogs/bp-blogs-activity.php: bp_blogs_record_activity() |
Record blog-related activity to the activity feed. |
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_publish_post_activity_meta() |
Record activity metadata about a published blog post. |
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-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 feed (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-xprofile/classes/class-bp-xprofile-profiledata.php: BP_XProfile_ProfileData::save() |
Save the data for the XProfile field. |
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/classes/class-bp-messages-thread.php: BP_Messages_Thread::get_messages() |
Get all messages associated with a thread. |
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-messages/bp-messages-notifications.php: bp_messages_message_sent_add_notification() |
Send notifications to message recipients. |
bp-groups/bp-groups-admin.php: bp_process_create_group_admin() |
Saving the data of newly create group from the backend. |
bp-groups/actions/create.php: groups_action_create_group() |
Catch and process group creation form submissions. |
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/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_post_update() |
Post an Activity status update affiliated with 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_edit_group_settings() |
Edit the base details for 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-functions.php: groups_create_group() |
Create a group. |
bp-groups/bp-groups-activity.php: groups_record_activity() |
Record an activity item related to the Groups component. |
bp-members/bp-members-functions.php: bp_update_user_last_activity() |
Update a user’s last activity. |
bp-members/bp-members-template.php: bp_get_member_class() |
Return the row class of the current member in the loop. |
bp-friends/bp-friends-activity.php: friends_record_activity() |
Record an activity item related to the Connections component. |
bp-friends/bp-friends-functions.php: friends_add_friend() |
Create a new friendship. |
bp-friends/classes/class-bp-friends-friendship.php: BP_Friends_Friendship::accept() |
Mark a friendship as accepted. |
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-integrations/learndash/library/SyncGenerator.php: SyncGenerator::addUserToBpGroup() |
Add a user to bp group by role |
bp-templates/bp-nouveau/includes/messages/ajax.php: bp_nouveau_ajax_messages_send_reply() |
AJAX send message reply and display error. |
bp-templates/bp-nouveau/includes/messages/functions.php: bp_nouveau_get_message_date() |
Get message date. |
bp-core/deprecated/buddypress/1.9.php: bp_core_add_notification() |
Add a notification for a specific user, from a specific component. |
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_since() |
Get an English-language representation of the time elapsed since a given date. |
bp-activity/bp-activity-functions.php: bp_activity_add() |
Add an activity item. |
bp-activity/bp-activity-functions.php: bp_activity_post_update() |
Post an activity update. |
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-notifications.php: bp_activity_at_mention_add_notification() |
Notify a member when their nicename is mentioned in an activity feed item. |
bp-activity/classes/class-bp-akismet.php: BP_Akismet::update_activity_akismet_meta() |
Update activity meta after an automatic spam check (not user-initiated). |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.