bp_core_admin_get_static_pages()
Generate a list of static pages, for use when building Components panel markup.
Description
By default, this list contains ‘register’, ‘activate’, ‘terms’ & ‘privacy’.
Return
(array)
Source
File: bp-core/admin/bp-core-admin-slugs.php
94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 | function bp_core_admin_get_static_pages() { $static_pages = array ( 'register' => __( 'Register Form' , 'buddyboss' ), 'terms' => __( 'Terms of Service' , 'buddyboss' ), 'privacy' => __( 'Privacy Policy' , 'buddyboss' ), 'activate' => __( 'Activate Account' , 'buddyboss' ), 'button' => array ( 'link' => bp_core_help_docs_link( 'components/registration/registration-pages.md' ), 'label' => __( 'View Tutorial' , 'buddyboss' ), ), ); /** * Filters the default static pages for BuddyPress setup. * * @since BuddyPress 1.6.0 * * @param array $static_pages Array of static default static pages. */ return apply_filters( 'bp_static_pages' , $static_pages ); } |
Changelog
Version | Description |
---|---|
BuddyPress 2.4.1 | 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.