bp_nouveau_get_submit_button( string $action = '' )
Get Some submit buttons data.
Description
Parameters
- $action
-
(Optional) The action requested.
Default value: ''
Return
(array|false) The list of the submit button parameters for the requested action False if no actions were found.
Source
File: bp-templates/bp-nouveau/includes/functions.php
function bp_nouveau_get_submit_button( $action = '' ) { if ( empty( $action ) ) { return false; } /** * Filter the Submit buttons to add your own. * * @since BuddyPress 3.0.0 * * @param array $value The list of submit buttons. * * @return array|false */ $actions = apply_filters( 'bp_nouveau_get_submit_button', array( 'register' => array( 'before' => 'bp_before_registration_submit_buttons', 'after' => 'bp_after_registration_submit_buttons', 'nonce' => 'bp_new_signup', 'attributes' => array( 'name' => 'signup_submit', 'id' => 'signup_submit', 'value' => __( 'Create Account', 'buddyboss' ), ), ), 'member-profile-edit' => array( 'before' => '', 'after' => '', 'nonce' => 'bp_xprofile_edit', 'attributes' => array( 'name' => 'profile-group-edit-submit', 'id' => 'profile-group-edit-submit', 'value' => __( 'Save Changes', 'buddyboss' ), ), ), 'member-capabilities' => array( 'before' => 'bp_members_capabilities_account_before_submit', 'after' => 'bp_members_capabilities_account_after_submit', 'nonce' => 'capabilities', 'attributes' => array( 'name' => 'capabilities-submit', 'id' => 'capabilities-submit', 'value' => __( 'Save', 'buddyboss' ), ), ), 'member-delete-account' => array( 'before' => 'bp_members_delete_account_before_submit', 'after' => 'bp_members_delete_account_after_submit', 'nonce' => 'delete-account', 'attributes' => array( 'disabled' => 'disabled', 'name' => 'delete-account-button', 'id' => 'delete-account-button', 'value' => __( 'Delete Account', 'buddyboss' ), ), ), 'members-general-settings' => array( 'before' => 'bp_core_general_settings_before_submit', 'after' => 'bp_core_general_settings_after_submit', 'nonce' => 'bp_settings_general', 'attributes' => array( 'name' => 'submit', 'id' => 'submit', 'value' => __( 'Save Changes', 'buddyboss' ), 'class' => 'auto', ), ), 'member-notifications-settings' => array( 'before' => 'bp_members_notification_settings_before_submit', 'after' => 'bp_members_notification_settings_after_submit', 'nonce' => 'bp_settings_notifications', 'attributes' => array( 'name' => 'submit', 'id' => 'submit', 'value' => __( 'Save Changes', 'buddyboss' ), 'class' => 'auto', ), ), 'members-profile-settings' => array( 'before' => 'bp_core_xprofile_settings_before_submit', 'after' => 'bp_core_xprofile_settings_after_submit', 'nonce' => 'bp_xprofile_settings', 'attributes' => array( 'name' => 'xprofile-settings-submit', 'id' => 'submit', 'value' => __( 'Save Changes', 'buddyboss' ), 'class' => 'auto', ), ), 'member-group-invites' => array( 'nonce' => 'bp_nouveau_group_invites_settings', 'attributes' => array( 'name' => 'member-group-invites-submit', 'id' => 'submit', 'value' => __( 'Save', 'buddyboss' ), 'class' => 'auto', ), ), 'activity-new-comment' => array( 'after' => 'bp_activity_entry_comments', 'nonce' => 'new_activity_comment', 'nonce_key' => '_wpnonce_new_activity_comment', 'wrapper' => false, 'attributes' => array( 'name' => 'ac_form_submit', 'value' => __( 'Post', 'buddyboss' ), ), ), 'member-data-export' => array( 'nonce' => 'buddyboss_data_export_request', 'attributes' => array( 'name' => 'member-data-export-submit', 'id' => 'submit', 'value' => __( 'Request Data Export', 'buddyboss' ), 'class' => 'auto', ), ), 'member-invites-submit' => array( 'nonce' => 'bp_member_invite_submit', 'attributes' => array( 'name' => 'member-invite-submit', 'id' => 'submit', 'value' => __( 'Send Invites', 'buddyboss' ), 'class' => 'auto', ), ), ) ); if ( isset( $actions[ $action ] ) ) { return $actions[ $action ]; } return false; }
Changelog
Version | Description |
---|---|
BuddyPress 3.0.0 | Introduced. |
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.