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: “ So, you can do some digging by searching for {{your industry}} +
POS systems
.
A block of code is set as follows:
class WC_Example { public function __construct(){ // add more code here } } // Start running our plugin $GLOBALS['wc_example'] = new WC_Example();
Any command-line input or output is written as follows:
$this->form_fields = array( 'api_key' => array( 'title' => __( 'API Key', 'woocommerce-integration-demo' ), 'type' => 'text', 'description' => __( 'Enter with your API Key. You can find this in "User Profile" drop-down (top right corner) > API Keys.', 'woocommerce-integration-demo' ), 'desc_tip' => true, 'default' => '', ), );
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: “In FOMO, you can click on Events and you can see all of the events that FOMO picked up.”
Tips or important notes
Appear like this.