Contents
bp_is_post_request()
Return true|false if this is a POST request.
Description
Return
(bool)
Source
File: bp-core/bp-core-functions.php
function bp_is_post_request() { return (bool) ( 'POST' === strtoupper( $_SERVER['REQUEST_METHOD'] ) ); }
Changelog
Version | Description |
---|---|
BuddyPress 1.9.0 | Introduced. |
Related
Used By | Description |
---|---|
bp-templates/bp-nouveau/includes/ajax.php: bp_nouveau_ajax_save_cover_position() |
Save Cover image position for group and member. |
bp-templates/bp-nouveau/includes/document/ajax.php: bp_nouveau_ajax_document_edit_folder() |
Rename folder. |
bp-templates/bp-nouveau/includes/document/ajax.php: bp_nouveau_ajax_document_delete() |
Ajax delete the document. |
bp-templates/bp-nouveau/includes/document/ajax.php: bp_nouveau_ajax_document_folder_move() |
Move folder to another folder. |
bp-templates/bp-nouveau/includes/document/ajax.php: bp_nouveau_ajax_document_save_privacy() | |
bp-templates/bp-nouveau/includes/document/ajax.php: bp_nouveau_ajax_document_activity_delete() | |
bp-templates/bp-nouveau/includes/document/ajax.php: bp_nouveau_ajax_document_upload() |
Upload a document via a POST request. |
bp-templates/bp-nouveau/includes/document/ajax.php: bp_nouveau_ajax_document_folder_delete() |
Delete folder. |
bp-templates/bp-nouveau/includes/document/ajax.php: bp_nouveau_ajax_document_document_save() |
Save document |
bp-templates/bp-nouveau/includes/document/ajax.php: bp_nouveau_ajax_document_folder_save() |
Save folder |
bp-templates/bp-nouveau/includes/document/ajax.php: bp_nouveau_ajax_document_child_folder_save() | |
bp-templates/bp-nouveau/includes/document/ajax.php: bp_nouveau_ajax_document_move() |
Ajax document move. |
bp-templates/bp-nouveau/includes/document/ajax.php: bp_nouveau_ajax_document_update_file_name() |
Update the document name. |
bp-templates/bp-nouveau/includes/activity/ajax.php: bp_nouveau_ajax_activity_update_privacy() |
Update activity privacy via a POST request. |
bp-forums/admin/tools.php: bp_admin_forum_repair_tools_wrapper_function() |
Wrapper function to handle Repair Forums all the actions. |
bp-core/admin/bp-core-admin-tools.php: bp_admin_repair_tools_wrapper_function() |
Wrapper function to handle Repair Community all the actions. |
bp-settings/actions/capabilities.php: bp_settings_action_capabilities() |
Handles the setting of user capabilities, spamming, hamming, role, etc. |
bp-settings/actions/delete-account.php: bp_settings_action_delete_account() |
Handles the deleting of a user. |
bp-settings/classes/class-bp-settings-component.php: BP_Settings_Component::late_includes() |
Late includes method. |
bp-settings/actions/export.php: bp_settings_action_export() |
Handles the data export of a user. |
bp-settings/actions/general.php: bp_settings_action_general() |
Handles the changing and saving of user email addresses and passwords. |
bp-settings/actions/notifications.php: bp_settings_action_notifications() |
Handles the changing and saving of user notification settings. |
bp-notifications/classes/class-bp-notifications-component.php: BP_Notifications_Component::late_includes() |
Late includes method. |
bp-xprofile/screens/settings-profile.php: bp_xprofile_action_settings() |
Handles the saving of xprofile field visibilities. |
bp-messages/actions/compose.php: bp_messages_action_create_message() |
Handle creating of private messages or sitewide notices |
bp-invites/actions/revoke-invite.php: bp_member_revoke_invite() |
Member revoke email invite. |
bp-invites/classes/class-bp-invites-component.php: BP_Invites_Component::late_includes() |
Late includes method. |
bp-invites/actions/invites.php: bp_member_invite_submit() |
Member submit email invite. |
bp-templates/bp-nouveau/includes/follow/ajax.php: bp_nouveau_ajax_followunfollow_member() |
Follow/Unfollow a user via a POST request. |
bp-templates/bp-nouveau/includes/friends/ajax.php: bp_nouveau_ajax_addremove_friend() |
Friend/un-friend a user via a POST request. |
bp-templates/bp-nouveau/includes/activity/ajax.php: bp_nouveau_ajax_spam_activity() |
AJAX spam an activity item or comment. |
bp-templates/bp-nouveau/includes/activity/ajax.php: bp_nouveau_ajax_mark_activity_favorite() |
Mark an activity as a favourite via a POST request. |
bp-templates/bp-nouveau/includes/activity/ajax.php: bp_nouveau_ajax_unmark_activity_favorite() |
Un-favourite an activity via a POST request. |
bp-templates/bp-nouveau/includes/activity/ajax.php: bp_nouveau_ajax_clear_new_mentions() |
Clear mentions if the directory tab is clicked |
bp-templates/bp-nouveau/includes/activity/ajax.php: bp_nouveau_ajax_delete_activity() |
Deletes an Activity item/Activity comment item received via a POST request. |
bp-templates/bp-nouveau/includes/activity/ajax.php: bp_nouveau_ajax_get_single_activity_content() |
Fetches an activity’s full, non-excerpted content via a POST request. |
bp-templates/bp-nouveau/includes/activity/ajax.php: bp_nouveau_ajax_new_activity_comment() |
Posts new Activity comments received via a POST request. |
bp-templates/bp-nouveau/includes/media/ajax.php: bp_nouveau_ajax_albums_loader() |
Load the template loop for the albums object. |
bp-templates/bp-nouveau/includes/media/ajax.php: bp_nouveau_ajax_media_upload() |
Upload a media via a POST request. |
bp-templates/bp-nouveau/includes/media/ajax.php: bp_nouveau_ajax_media_save() |
Save media |
bp-templates/bp-nouveau/includes/media/ajax.php: bp_nouveau_ajax_media_delete() |
Delete media |
bp-templates/bp-nouveau/includes/media/ajax.php: bp_nouveau_ajax_media_move_to_album() |
Move media to album |
bp-templates/bp-nouveau/includes/media/ajax.php: bp_nouveau_ajax_media_album_save() |
Save album |
bp-templates/bp-nouveau/includes/media/ajax.php: bp_nouveau_ajax_media_album_delete() |
Delete album |
bp-templates/bp-nouveau/includes/groups/ajax.php: bp_nouveau_ajax_joinleave_group() |
Join or leave a group when clicking the “join/leave” button via a POST request. |
bp-templates/bp-nouveau/includes/ajax.php: bp_nouveau_ajax_object_template_loader() |
Load the template loop for the current object. |
bp-core/admin/bp-core-admin-tools.php: bp_admin_repair_handler() |
Handle the processing and feedback of the admin tools page. |
bp-core/bp-core-dependency.php: bp_post_request() |
The main action used for handling theme-side POST requests. |
bp-core/bp-core-attachments.php: bp_attachments_cover_image_ajax_delete() |
Ajax delete a cover photo for a given object and item id. |
bp-core/bp-core-attachments.php: bp_attachments_cover_image_ajax_upload() |
Ajax Upload and set a cover photo |
bp-core/bp-core-avatars.php: bp_avatar_ajax_delete() |
Ajax delete an avatar for a given object and item id. |
bp-core/bp-core-avatars.php: bp_avatar_ajax_upload() |
Ajax upload an avatar. |
bp-core/bp-core-avatars.php: bp_avatar_ajax_set() |
Ajax set an avatar for a given object and item id. |
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.