Conventions used
There are a number of text conventions used throughout this book.
Code in text
: Indicates code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles. Here is an example: "The widget
method starts by calling the standard PHP extract
function on the first parameter received, an array named $args
, which contains a list of styling tidbits to render the widget."
A block of code is set as follows:
class Book_Reviews extends WP_Widget { function __construct () { parent::__construct( 'book_reviews', 'Book Reviews', array( 'description' => 'Displays list of recent book reviews' ) ); } }
When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:
</tr><tr> <td colspan="2"> <div class="g-recaptcha" data-sitekey="[my-site-key]"></div> </td>
Any command-line input or output is written as follows:
npm install --save-dev --save-exact @wordpress/scripts
Bold: Indicates a new term, an important word, or words that you see onscreen. For instance, words in menus or dialog boxes appear in bold. Here is an example: "Publish the new page and click on View Page to see the block on your development site."
Tips or Important Notes
Appear like this.