I would like to help system users by putting a box with explanatory text inside every part of WordPress admin, for example posts , pages and even custom post types .
Does anyone know of a plugin or function solution that can help me?
I would like to help system users by putting a box with explanatory text inside every part of WordPress admin, for example posts , pages and even custom post types .
Does anyone know of a plugin or function solution that can help me?
For these specific pages you are quoting, you are looking for a Meta Box . You have to define the post type, location and priority:
add_action( 'add_meta_boxes', 'add_box_sopt_38791' );
function add_box_sopt_38791() {
add_meta_box(
'sectionid',
'Custom box',
'inner_box_sopt_38791',
'product', // Tipo de post
'side', // Localização
'high' // Prioridade
);
}
function inner_box_sopt_38791( $post )
{
?>
<h1>Help</h1>
<?php
}
It will appear in the new or existing Products screens (% with% and% with%:
Toapplytovariousposttypes:
foreach(array('post','page','product')as$cpt)add_meta_box($argumentos);//Usar$cptnotipodepost
ViewMetaBoxexamplesavinginformation: Extracting a WooCommerce Attribute and Put it in Google Book Viewer Script