May 2017
Beginner to intermediate
536 pages
14h 25m
English
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, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles are shown as follows: "We can set additional parameters to the search query using $query->set function and restrict the search features to limited posts."
A block of code is set as follows:
add_action('pre_get_posts', 'search_restrictions'); function search_restrictions($query) { if($query->is_search && $query->is_main_query() && !is_admin()){ $search_blocked_ids = array('24','100'); $search_allowed_types = ...Read now
Unlock full access