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 Description
Parameters Parameters
- $id
-
(Optional) The screen id
Default value: ''
Return 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 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 Changelog
| Version | Description |
|---|---|
| 3.0.0 | Introduced. |