Conventions
In this book, you will find a number of text styles that distinguish between different kinds of information. Here are some examples of these styles and an explanation of their meaning.
Code words in text are shown as follows: "WordPress passes existing MIME types as the parameter to this function. Here, we have modified the $mimes
array to restrict the image types to JPG."
A block of code is set as follows:
function filter_mime_types($mimes) { $mimes = array( 'jpg|jpeg|jpe' => 'image/jpeg', ); return $mimes; }
When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:
function filter_mime_types($mimes) {
$mimes = array(
'jpg|jpeg|jpe' => 'image/jpeg',
);
do_action_ref_array('wpwa_custom_mimes', array(&$mimes));
return $mimes;
}
New terms and important words are shown in bold. Words that you see on the screen, for example, in menus or dialog boxes, appear in the text like this: "Once the Publish button is clicked, we validate the form and save the error messages as transients."
Note
Warnings or important notes appear in a box like this.
Tip
Tips and tricks appear like this.