Action
rpress_fooditems_contextual_help
On this page
Fires on the menu item edit screens so extensions can add contextual help.
Runs on the load-post.php and load-post-new.php hooks, after RestroPress has added its own help tabs for the menu item screen. It only fires when the current screen is the fooditem edit screen.
Available since RestroPress 1.0.
Parameters#
| Parameter | Type | Description |
|---|---|---|
$screen | WP_Screen | The current admin screen object. |
Example#
function my_fooditem_help( $screen ) {
$screen->add_help_tab( array(
'id' => 'my-fooditem-help',
'title' => esc_html__( 'My Fields', 'my-plugin' ),
'content' => '<p>' . esc_html__( 'Describe your custom fields here.', 'my-plugin' ) . '</p>',
) );
}
add_action( 'rpress_fooditems_contextual_help', 'my_fooditem_help' );
Source#
Fired from:
includes/admin/fooditems/contextual-help.php(line 60), inrpress_fooditems_contextual_help()
Was this page helpful?
