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

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

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.