It’s not that hard, you can use the all_admin_notices
-hook, which appears beneath the Post Updated/Saved
, etc. messages box.
Wrapped up in a plugin:
<?php
! defined( 'ABSPATH' ) AND exit;
/** Plugin Name: (#64933) »kaiser« Add post/page note */
function wpse64933_add_posttype_note()
{
global $post, $pagenow;
// Abort in certain conditions, based on the global $pagenow
if ( ! in_array(
$pagenow
,array(
'post-new.php'
,'post.php'
)
) )
return;
// Abort in certain conditions, based on the global $post
if ( ! in_array(
$post->post_type
,array(
'post'
,'page'
)
) )
return;
// You can use the global $post here
echo '<p>HELLO WORLD!</p>';
}
add_action( 'all_admin_notices', 'wpse64933_add_posttype_note' );
Related Posts:
- Load a script just to custom post type in admin
- Placing a Custom Post Type Menu Above the Posts Menu Using menu_position?
- Loading External Scripts in Admin but ONLY for a Specific Post Type?
- Customize Edit Post screen for Custom Post Types?
- Filter by custom field in custom post type on admin page
- Showing User’s Post Counts by Custom Post Type in the Admin’s User List?
- Multiple custom post types under one admin menu
- How can I change the admin search posts fields?
- Custom post type: Add “Edit | Quick Edit | Trash | View” links to date (if title is not shown in column)?
- Admin Area Custom Type Search By Meta Fields Without Title & Content
- Add “Last Edited by” column to custom post type list table
- How can I filter posts by post_parent in the admin?
- Filter custom post types in admin not working
- Create a dropdown with Custom Post Types as option in admin
- How to Make an admin_notices Message That Disappears Once the User Leaves That Particular Page?
- Filter admin columns by custom post field value
- Is it OK to move admin menu items?
- Prevent reload confirmation after AJAX save
- Filter by custom Field for Custom post type Admin Listing
- jQuery UI in Admin (Best Practice?)
- Admin Post Update Redirection to Posts Screen
- Renaming Menu Item within Admin Menu Section for a Custom Post Type?
- Custom Post type sort order not working in the admin area
- Custom admin columns for ALL custom post types
- How to get search results in the backend admin on a custom post type?
- Add custom column to custom post type overview in backend
- Unable to filter on field on edit.php page
- How to Change the Title of a Meta Box on a Specified Custom Post Type? [duplicate]
- No results searching custom post type in admin panel
- Adding help information to custom post edit page
- Actions that Run on Admin Edit Page Load After Posts Are Queried
- Custom Post Type and taxonomies’s labels localization not working
- Change admin post thumbnail size for custom post type only
- Filters post in admin with dropdown select, custom post type
- Admin List Dynamic Heading
- Show admin help message across custom post type parent and child posts
- How to show custom (checkbox) field value in admin post list?
- WordPress User Roles, Custom Post Types, and Admin views
- Settings page above CPT page in admin section
- Using WPAlchemy metabox values in another metabox
- Custom post admin filtering by post meta (the date)
- Admin Column Text Positioning
- How can I change the title of an Add New page in Admin for custom post type
- How to customize admin posts based on the user who is logged in
- Set a default category – if the user didn’t select one- before creating a post
- How can I create a custom meta box to add an mp4 video to a page?
- Remove rows in the manage post/page view
- Access $post object when adding custom columns to list table
- How to only show posts assigned to current user, only in certain post types
- Add acf field in title (admin table)
- Adding HTML tags or css classes to admin columns
- Create a page that will be used to create a custom post type
- Get parse_query filter to return slug instead of id
- Custom Post Type Nav to Subpage
- Selecting a post in Dashboard
- Custom admin post.php page
- A simple script to allow sorting of custom posts in admin?
- How to add a custom-post-type post within another custom-post-type post edit screen using AJAX?
- Notify admin on new submit
- Options page – dropdown of users
- No Permission to add new Page, Post or CPT with Admin role
- Filtering posts list table
- CPT Validation to not show “Post updated.”
- Edit Custom Post Type on Custom Admin Page instead Post Admin
- Custom post type isn’t working
- Add a ‘guide’ image to custom post type admin page
- Use remove_meta_box conditionally on custom post type
- How to group navigation items in the admin panel
- Sortable column containing numeric values for Custom Post Type at WordPress Backend
- How to check if post/page or taxonomy post is published by admin
- Linking to Post Types from wp-admin
- CPT Columns doesn’t show categories
- Insert Custom Post Types
- Custom Post Type – Support “author” only for admins
- Showing User’s Post Counts by Custom Post Type in the Author.php?
- get_post_types not working properly in admin
- Is there a hook between clicking on “Add new” and the edit screen of a new post?
- Function to add custom HTML into head in custom post-type list page
- Multiple custom post types on same admin page
- WordPress admin for a custom post, hide/collapse the main “title” and “description” boxes
- Metaboxes inside Tab
- How can I put content before my custom post type default pages?
- How we can create menu from Appearance > Menu and use as a add-submenu-page for admin menu?
- Is there any filter to add a custom attribute to the tag in admin panel?
- How to hide private posts even if user is admin
- Adding orderby url parameter to main CPT admin menu link
- Help Adding filter to Add Media button for custom post type
- Delete all custom posts then upload a new CSV of events
- Pagination in wp-admin for CPT
- Create an administation subpage containing posts in a certain category
- Custom post type doesn’t display on admin list
- Shared Custom post type between WP network sites
- Exclude categories For Custom post types
- Admin menu post type
- WordPress Author Posts Review After Every Change In The Same WordPress Post
- Redirect preview single post link to a page
- Collection of fields in a single post
- Display read only info on admin, custom post page
- How to set the Screen Options for Users in the Admin Panel?
- Admin menu link with variable