Action
rpress_settings_contextual_help
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#
| Parameter | Type | Description |
|---|---|---|
$screen | WP_Screen | The 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), inrpress_settings_contextual_help()
See also#
Was this page helpful?
