Skip to content
Docs
Get RestroPress

Filter

rpress_beta_enabled_extensions

Updated
On this page

Filters the extensions that offer opt-in beta updates.

Runs when the Tools page decides whether to show the Beta Versions tab and when it builds the panel. The default is an empty array. Each entry maps an extension slug to its display name; the slug is the key stored in the enabled_betas setting. The tab only appears when the array is not empty.

Parameters#

ParameterTypeDescription
$extensionsarrayAssociative array of extension slug => extension name. Empty by default.

Return value#

array. The extension slug => name array.

Example#

function my_register_beta_extension( $extensions ) {
	$extensions['my-extension'] = 'My Extension';
	return $extensions;
}
add_filter( 'rpress_beta_enabled_extensions', 'my_register_beta_extension' );

Source#

Applied in:

  • includes/admin/tools.php (line 727), in rpress_get_beta_enabled_extensions()

See also#

Was this page helpful?