-
Book Overview & Buying
-
Table Of Contents
Professional WordPress - Third Edition
By :
Integrating your plugin into WordPress is an essential step for users to interact with your plugin in the admin dashboard. WordPress features many different areas where your plugin can be integrated, including a meta box, sidebar and dashboard widgets, and custom shortcodes.
WordPress features multiple meta boxes on the Add New Post and Page screens. These meta boxes are used for adding additional information to your posts, pages, and content. For example, when creating a new post, you will see a Category meta box, which allows you to select what categories your post will be in.
Meta boxes can be created in a plugin using the add_meta_box() function in WordPress. This function accepts seven parameters, as shown here:
<?php add_meta_box( $id, $title, $callback, $page,
$context, $priority, $callback_args ); ?>
Each parameter helps define where and how your meta box is displayed.
$id—The HTML ID attribute for the meta box$title...
Change the font size
Change margin width
Change background colour