Skip to content
Docs
Get RestroPress

Action

rpress_settings_contextual_help

Updated
On this page

Fires when the settings screen help tabs are loaded.

Runs at the end of the settings screen contextual help setup, after the built-in help tabs are added. Use it to add help tabs for extension settings.

Parameters#

ParameterTypeDescription
$screenWP_ScreenThe current admin screen object.

Example#

function my_settings_help( $screen ) {
	$screen->add_help_tab( array(
		'id'      => 'my-settings-help',
		'title'   => __( 'My extension', 'my-plugin' ),
		'content' => '<p>' . esc_html__( 'Settings for my extension.', 'my-plugin' ) . '</p>',
	) );
}
add_action( 'rpress_settings_contextual_help', 'my_settings_help', 10, 1 );

Source#

Fired from:

  • includes/admin/settings/contextual-help.php (line 73), in rpress_settings_contextual_help()

See also#

Was this page helpful?