bp_is_post_request()
Return true|false if this is a POST request.
Return #Return
(bool)
Source #Source
File: bp-core/bp-core-functions.php
function bp_is_post_request() { return (bool) ( 'POST' === strtoupper( $_SERVER['REQUEST_METHOD'] ) ); }
Expand full source code Collapse full source code View on Trac
Related #Related
Used By #Used By
Used By | Description |
---|---|
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-avatars.php: bp_avatar_ajax_set() |
Ajax set an avatar for a given object and item id. |
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-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_upload() |
Ajax Upload and set a cover image |
bp-core/bp-core-attachments.php: bp_attachments_cover_image_ajax_delete() |
Ajax delete a cover image for a given object and item id. |
bp-settings/classes/class-bp-settings-component.php: BP_Settings_Component::late_includes() |
Late includes method. |
bp-settings/actions/capabilities.php: bp_settings_action_capabilities() |
Handles the setting of user capabilities, spamming, hamming, role, etc. |
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-settings/actions/delete-account.php: bp_settings_action_delete_account() |
Handles the deleting of a user. |
bp-settings/actions/data.php: bp_settings_action_data() |
Data export request handler. |
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/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/ajax.php: bp_nouveau_ajax_object_template_loader() |
Load the template loop for the current object. |
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/friends/ajax.php: bp_nouveau_ajax_addremove_friend() |
Friend/un-friend a user via a POST request. |
bp-templates/bp-legacy/buddypress-functions.php: bp_legacy_theme_ajax_addremove_friend() |
Friend/un-friend a user via a POST request. |
bp-templates/bp-legacy/buddypress-functions.php: bp_legacy_theme_ajax_accept_friendship() |
Accept a user friendship request via a POST request. |
bp-templates/bp-legacy/buddypress-functions.php: bp_legacy_theme_ajax_reject_friendship() |
Reject a user friendship request via a POST request. |
bp-templates/bp-legacy/buddypress-functions.php: bp_legacy_theme_ajax_joinleave_group() |
Join or leave a group when clicking the “join/leave” button via a POST request. |
bp-templates/bp-legacy/buddypress-functions.php: bp_legacy_theme_ajax_close_notice() |
Close and keep closed site wide notices from an admin in the sidebar, via a POST request. |
bp-templates/bp-legacy/buddypress-functions.php: bp_legacy_theme_ajax_messages_send_reply() |
Send a private message reply to a thread via a POST request. |
bp-templates/bp-legacy/buddypress-functions.php: bp_legacy_theme_activity_template_loader() |
Load the activity loop template when activity is requested via AJAX. |
bp-templates/bp-legacy/buddypress-functions.php: bp_legacy_theme_post_update() |
Processes Activity updates received via a POST request. |
bp-templates/bp-legacy/buddypress-functions.php: bp_legacy_theme_new_activity_comment() |
Posts new Activity comments received via a POST request. |
bp-templates/bp-legacy/buddypress-functions.php: bp_legacy_theme_delete_activity() |
Deletes an Activity item received via a POST request. |
bp-templates/bp-legacy/buddypress-functions.php: bp_legacy_theme_delete_activity_comment() |
Deletes an Activity comment received via a POST request. |
bp-templates/bp-legacy/buddypress-functions.php: bp_legacy_theme_spam_activity() |
AJAX spam an activity item or comment. |
bp-templates/bp-legacy/buddypress-functions.php: bp_legacy_theme_mark_activity_favorite() |
Mark an activity as a favourite via a POST request. |
bp-templates/bp-legacy/buddypress-functions.php: bp_legacy_theme_unmark_activity_favorite() |
Un-favourite an activity via a POST request. |
bp-templates/bp-legacy/buddypress-functions.php: bp_legacy_theme_get_single_activity_content() |
Fetches an activity’s full, non-excerpted content via a POST request. |
bp-templates/bp-legacy/buddypress-functions.php: bp_legacy_theme_ajax_invite_user() |
Invites a friend to join a group via a POST request. |
bp-templates/bp-legacy/buddypress-functions.php: bp_legacy_theme_object_template_loader() |
Load the template loop for the current object. |
bp-messages/actions/compose.php: bp_messages_action_create_message() |
Handle creating of private messages or sitewide notices |
bp-xprofile/screens/settings-profile.php: bp_xprofile_action_settings() |
Handles the saving of xprofile field visibilities. |
bp-notifications/classes/class-bp-notifications-component.php: BP_Notifications_Component::late_includes() |
Late includes method. |
Changelog #Changelog
Version | Description |
---|---|
1.9.0 | Introduced. |