Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Wordpress Web Application  Development

You're reading from   Wordpress Web Application Development Building robust web apps easily and efficiently

Arrow left icon
Product type Paperback
Published in May 2017
Publisher Packt
ISBN-13 9781787126800
Length 536 pages
Edition 3rd Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Rakhitha Nimesh Ratnayake Rakhitha Nimesh Ratnayake
Author Profile Icon Rakhitha Nimesh Ratnayake
Rakhitha Nimesh Ratnayake
Arrow right icon
View More author details
Toc

Table of Contents (14) Chapters Close

Preface 1. WordPress as a Web Application Framework FREE CHAPTER 2. Implementing Membership Roles, Permissions, and Features 3. Planning and Customizing the Core Database 4. Building Blocks of Web Applications 5. Implementing Application Content Restrictions 6. Developing Pluggable Modules 7. Customizing the Dashboard for Powerful Backends 8. Adjusting Theme for Amazing Frontends 9. Enhancing the Power of Open Source Libraries and Plugins 10. Listening to Third-Party Applications 11. Integrating and Finalizing the Forum Management Application 12. Supplementary Modules for Web Development 13. Configurations, Tools, and Resources

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, 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 = array('wpwaf_topic','wpwaf_forum');
$query->set('post__not_in', $search_blocked_ids );
$query->set('post_type', $search_allowed_types );
}
return $query;
}

When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:

    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 = array('wpwaf_topic','wpwaf_forum');
$query->set('post__not_in', $search_blocked_ids );
$query->set('post_type', $search_allowed_types );
}
return $query;
}

Any command-line input or output is written as follows:

select option_value from wp_users where option_name='wp_user_roles'

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: "Clicking the Next button moves you to the next screen."

Warnings or important notes appear in a box like this.
Tips and tricks appear like this.
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime