+
Skip to content

Add Help Tabs to Main Pages #980

@mateuswetah

Description

@mateuswetah

Context and motivation

One of the key advantages of our refactor made due to #494 in version 1.0.0 is the ability to use WordPress Screen Help Tabs to add information about the current page, with useful links to users and basic explanation. Lets see if we can elaborate some content to add there in future versions.

Here is an example from the Dashboard page:

       $screen = get_current_screen();

		// Add help tabs if needed
		$screen->add_help_tab(array(
			'id' => 'tainacan_dashboard_help_tab',
			'title' => __('Dashboard Options', 'tainacan'),
			'content' => '<p>' . __('You can customize which cards appear on this dashboard.', 'tainacan') . '</p>',
		));

		$screen->set_help_sidebar(
			'<p>' . __('For more information:', 'tainacan') . '</p>' .
			'<p><a href="https://tainacan.org/" target="_blank">' . __('Tainacan Documentation', 'tainacan') . '</a></p>'
		);

Metadata

Metadata

Assignees

No one assigned

    Projects

    Status

    Backlog

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载