WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru Авторские Темы для WordPress
функция не описана

ACF_Admin::setup_help_tab() public ACF 5.9.0

Sets up the admin help tab.

{} Это метод класса: ACF_Admin{}

Хуков нет.

Возвращает

null. Ничего.

Использование

$ACF_Admin = new ACF_Admin();
$ACF_Admin->setup_help_tab();

Список изменений

С версии 5.9.0 Введена.

Код ACF_Admin::setup_help_tab() ACF 5.9.1

<?php
public function setup_help_tab() {
	$screen = get_current_screen();

	// Overview tab.
	$screen->add_help_tab(
		array(
			'id'      => 'overview',
			'title'   => __( 'Overview', 'acf' ),
			'content' => 
				'<p><strong>' . __( 'Overview', 'acf' ) . '</strong></p>' .
				'<p>' . __( 'The Advanced Custom Fields plugin provides a visual form builder to customize WordPress edit screens with extra fields, and an intuitive API to display custom field values in any theme template file.', 'acf' ) . '</p>' .
				'<p>' . sprintf(
					__( 'Before creating your first Field Group, we recommend first reading our <a href="%s" target="_blank">Getting started</a> guide to familiarize yourself with the plugin\'s philosophy and best practises.', 'acf' ),
					'https://www.advancedcustomfields.com/resources/getting-started-with-acf/'
				) . '</p>' .
				'<p>' . __( 'Please use the Help & Support tab to get in touch should you find yourself requiring assistance.', 'acf' ) . '</p>' .
				''
		)
	);

	// Help tab.
	$screen->add_help_tab(
		array(
			'id'      => 'help',
			'title'   => __( 'Help & Support', 'acf' ),
			'content' => 
				'<p><strong>' . __( 'Help & Support', 'acf' ) . '</strong></p>' .
				'<p>' . __( 'We are fanatical about support, and want you to get the best out of your website with ACF. If you run into any difficulties, there are several places you can find help:', 'acf' ) . '</p>' .
				'<ul>' .
					'<li>' . sprintf(
						__( '<a href="%s" target="_blank">Documentation</a>. Our extensive documentation contains references and guides for most situations you may encounter.', 'acf' ),
						'https://www.advancedcustomfields.com/resources/'
					) . '</li>' .
					'<li>' . sprintf(
						__( '<a href="%s" target="_blank">Discussions</a>. We have an active and friendly community on our Community Forums who may be able to help you figure out the ‘how-tos’ of the ACF world.', 'acf' ),
						'https://support.advancedcustomfields.com/'
					) . '</li>' .
					'<li>' . sprintf(
						__( '<a href="%s" target="_blank">Help Desk</a>. The support professionals on our Help Desk will assist with your more in depth, technical challenges.', 'acf' ),
						'https://www.advancedcustomfields.com/support/'
					) . '</li>' .
				'</ul>'
		)
	);

	// Sidebar.
	$screen->set_help_sidebar(
		'<p><strong>' . __( 'Information', 'acf' ) . '</strong></p>' .
		'<p><span class="dashicons dashicons-admin-plugins"></span> ' . sprintf( __( 'Version %s', 'acf' ), ACF_VERSION ) . '</p>' .
		'<p><span class="dashicons dashicons-wordpress"></span> <a href="https://wordpress.org/plugins/advanced-custom-fields/" target="_blank">' . __( 'View details', 'acf' ) . '</a></p>' .
		'<p><span class="dashicons dashicons-admin-home"></span> <a href="https://www.advancedcustomfields.com/" target="_blank" target="_blank">' . __( 'Visit website', 'acf' ) . '</a></p>' .
		''
	);
}