Book description
WordPress is much more than a blogging platform. If you have basic PHP, HTML, CSS, and JavaScript experience you can use WordPress to develop fast, scalable, secure, and highly customized web apps, mobile apps, web services, and multisite networks of websites. Along with core WordPress functions and database schema, you’ll learn how to build custom plugins, themes, and services for just about any kind of web or mobile application.
In this updated second edition, Brian Messenlehner and Jason Coleman cover new features and functionality added to WordPress up to version 5.4. All code examples in the book are available on GitHub.
- Compare WordPress with traditional app development frameworks
- Use themes for views and plugins for backend functionality
- Get suggestions for choosing or building WordPress plugins
- Register custom post types (CPTs) and taxonomies
- Manage user accounts and roles, and access user data
- Build asynchronous behaviors with jQuery
- Use WordPress to develop mobile apps for iOS and Android
- Integrate PHP libraries, external APIs, and web service plugins
- Collect payments through ecommerce and membership plugins
- Learn how to speed up and scale your WordPress app
- Extend the WordPress REST API and create custom endpoints
- Learn about WordPress Gutenberg blocks development
Publisher resources
Table of contents
- Foreword
- Preface
-
1. Building Web Apps with WordPress
- What Is a Website?
- What Is an App?
- What Is a Web App?
- Why Use WordPress?
- When Not to Use WordPress
- WordPress as an Application Framework
-
Anatomy of a WordPress App
- What Is SchoolPress?
- SchoolPress Runs on a WordPress Multisite Network
- The SchoolPress Business Model
- Membership Levels and User Roles
- Classes Are BuddyPress Groups
- Assignments Are a CPT
- Submissions Are a (Sub)CPT for Assignments
- Semesters Are a Taxonomy on the Class CPT
- Departments Are a Taxonomy on the Class CPT
- SchoolPress Has One Main Custom Plugin
- SchoolPress Uses a Few Other Custom Plugins
- SchoolPress Uses the Memberlite Theme
-
2. WordPress Basics
- WordPress Directory Structure
-
WordPress Database Structure
- wp_options
- Functions Found in /wp-includes/option.php
- wp_users
- Functions Found in /wp-includes/â¦
- wp_usermeta
- wp_posts
- Functions Found in /wp-includes/post.php
- wp_postmeta
- Functions Found in /wp-includes/post.php
- wp_comments
- Functions Found in /wp-includes/comment.php
- wp_commentsmeta
- Functions Found in /wp-includes/comment.php
- wp_terms
- Functions Found in /wp-includes/taxonomy.php
- wp_termmeta
- wp_term_taxonomy
- /wp-includes/taxonomy.php
- wp_term_relationships
- Hooks: Actions and Filters
- Development and Hosting Environments
- Extending WordPress
- 3. Using WordPress Plugins
- 4. Themes
- 5. Custom Post Types, Post Metadata, and Taxonomies
- 6. Users, Roles, and Capabilities
- 7. Working with WordPress APIs, Objects, and Helper Functions
- 8. Secure WordPress
- 9. JavaScript Frameworks and Workflow
- 10. WordPress REST API
- 11. Project Gutenberg, Blocks, and Custom Block Types
-
12. WordPress Multisite Networks
- Why Multisite?
- Why Not Multisite?
- Multisite Alternatives
- Setting Up a Multisite Network
- Managing a Multisite Network
- Multisite Database Structure
- Domain Mapping
- Random Useful Multisite Plugins
-
Basic Multisite Functionality
- $blog_id
- is_multisite()
- get_current_blog_id()
- switch_to_blog( $new_blog )
- restore_current_blog()
- get_blog_details( $fields = null, $get_all = true )
- update_blog_details( $blog_id, $details = array() )
- get_blog_status( $id, $pref )
- update_blog_status( $blog_id, $pref, $value )
- get_blog_option( $id, $option, $default = false )
- update_blog_option( $id, $option, $value )
- delete_blog_option( $id, $option )
- get_blog_post( $blog_id, $post_id )
- add_user_to_blog( $blog_id, $user_id, $role )
- wpmu_delete_user( $user_id )
- create_empty_blog( $domain, $path, $weblog_title, $site_id = 1 )
- Functions We Didnât Mention
- 13. Localizing WordPress Apps
- 14. WordPress Optimization and Scaling
-
15. Ecommerce
- Choosing a Plugin
- Payment Gateways
- Merchant Accounts
- Setting Up SaaS with Paid Memberships Pro
-
The SaaS Model
- Step 0: Establishing How You Want to Charge for Your App
- Step 1: Installing and Activating Paid Memberships Pro
- Step 2: Setting Up the Level
- Step 3: Setting Up Pages
- Step 4: Choosing Payment Settings
- Step 5: Choosing Email Settings
- Step 6: Choosing Advanced Settings
- Step 7: Locking Down Pages
- Step 8: Customizing Paid Memberships Pro
- 16. Mobile Apps Powered by WordPress
- 17. PHP Libraries, Web Service Integrations, and Platform Migrations
- 18. The Future
- Index
Product information
- Title: Building Web Apps with WordPress, 2nd Edition
- Author(s):
- Release date: December 2019
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9781491990032
You might also like
book
WordPress Plugin Development Cookbook - Third Edition
Create plugins for WordPress through detailed recipes that cover the creation of shortcodes, custom post types, …
book
Professional WordPress Plugin Development, 2nd Edition
Extend WordPress with plugins using this advanced WordPress development book, updated for the current version This …
book
Laravel: Up & Running, 2nd Edition
What sets Laravel apart from other PHP web frameworks? Speed and simplicity, for starters. This rapid …
book
A Frontend Web Developer’s Guide to Testing
Discover expert tips and best practices for maximizing the efficacy of various test automation frameworks and …