bp_nouveau_group_get_core_create_screens( string $id = '' )
Get the hook, nonce, and eventually a specific template for Core Group’s create screens.
Description
Parameters
- $id
-
(Optional) The screen id
Default value: ''
Return
(mixed) An array containing the hook dynamic part, the nonce, and eventually a specific template. False if it's not a core create screen.
Source
File: bp-templates/bp-nouveau/includes/groups/functions.php
function bp_nouveau_group_get_core_create_screens( $id = '' ) { // screen id => dynamic part of the hooks, nonce & specific template to use. $screens = array( 'group-details' => array( 'hook' => 'group_details_creation_step', 'nonce' => 'groups_create_save_group-details', 'template' => 'groups/single/admin/edit-details', ), 'group-settings' => array( 'hook' => 'group_settings_creation_step', 'nonce' => 'groups_create_save_group-settings', ), 'group-avatar' => array( 'hook' => 'group_avatar_creation_step', 'nonce' => 'groups_create_save_group-avatar', ), 'group-cover-image' => array( 'hook' => 'group_cover_image_creation_step', 'nonce' => 'groups_create_save_group-cover-image', ), 'group-invites' => array( 'hook' => 'group_invites_creation_step', 'nonce' => 'groups_create_save_group-invites', 'template' => 'common/js-templates/invites/index', ), ); if ( isset( $screens[ $id ] ) ) { return $screens[ $id ]; } 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.