0%

Book Description

Extend WordPress with plugins using this advanced WordPress development book, updated for the current version

This significantly updated edition of Professional WordPress Plugin Development addresses modern plugin development for WordPress, the highly popular content management system (CMS). If you’re using WordPress to create and manage websites, WordPress plugins are the software that can extend or enhance CMS functionality. This book offers guidance on writing plugins for WordPress sites to share or sell to other users.

The second edition of Professional WordPress Plugin Development covers the building of advanced plugin development scenarios. It discusses the plugin framework and coding standards as well as dashboards, settings, menus, and related application programming interfaces (APIs). Additional topics include security, performance, data validation, and SQL statements.

•    Learn about the power of hooks in WordPress

•    Discover how JavaScript and Ajax will work in your site

•    Understand key technologies: Block Editor/Gutenberg, JS/React, PHP, and the REST API

•    Create and use custom post types and taxonomies.

•    Creating custom dashboard menus and plugin settings

•    Work with users and user data

•    Schedule tasks and utilizing Cron

•    Performance and security considerations

Written by experienced plugin developers, Professional WordPress Plugin Development also helps you internationalize and localize your WordPress website. Find out about debugging systems and optimizing your site for speed. As WordPress use continues to increase, you can elevate your professional knowledge of how to extend WordPress through plugins.

Table of Contents

  1. COVER
  2. FOREWORD
  3. INTRODUCTION
    1. WHO THIS BOOK IS FOR
    2. WHAT YOU NEED TO USE THIS BOOK
    3. WHAT THIS BOOK COVERS
    4. HOW THIS BOOK IS STRUCTURED
    5. CONVENTIONS
    6. SOURCE CODE
    7. ERRATA
  4. 1 An Introduction to Plugins
    1. WHAT IS A PLUGIN?
    2. AVAILABLE PLUGINS
    3. ADVANTAGES OF PLUGINS
    4. INSTALLING AND MANAGING PLUGINS
    5. SUMMARY
  5. 2 Plugin Framework
    1. REQUIREMENTS FOR PLUGINS
    2. BEST PRACTICES
    3. PLUGIN HEADER
    4. DETERMINING PATHS
    5. ACTIVATE/DEACTIVATE FUNCTIONS
    6. UNINSTALL METHODS
    7. CODING STANDARDS
    8. SUMMARY
  6. 3 Dashboard and Settings
    1. ADDING MENUS AND SUBMENUS
    2. PLUGIN SETTINGS
    3. THE OPTIONS API
    4. THE SETTINGS API
    5. KEEPING IT CONSISTENT
    6. SUMMARY
  7. 4 Security and Performance
    1. SECURITY OVERVIEW
    2. USER PERMISSIONS
    3. NONCES
    4. DATA VALIDATION AND SANITIZATION
    5. FORMATTING SQL STATEMENTS
    6. SECURITY GOOD HABITS
    7. PERFORMANCE OVERVIEW
    8. CACHING
    9. TRANSIENTS
    10. SUMMARY
  8. 5 Hooks
    1. UNDERSTANDING HOOKS
    2. ACTIONS
    3. FILTERS
    4. USING HOOKS FROM WITHIN A CLASS
    5. USING HOOKS WITH ANONYMOUS FUNCTIONS
    6. CREATING CUSTOM HOOKS
    7. FINDING HOOKS
    8. SUMMARY
  9. 6 JavaScript
    1. REGISTERING SCRIPTS
    2. ENQUEUEING SCRIPTS
    3. LIMITING SCOPE
    4. LOCALIZING SCRIPTS
    5. INLINE SCRIPTS
    6. OVERVIEW OF BUNDLED SCRIPTS
    7. POLYFILLS
    8. YOUR CUSTOM SCRIPTS
    9. jQuery
    10. BACKBONE/UNDERSCORE
    11. REACT
    12. SUMMARY
  10. 7 Blocks and Gutenberg
    1. WHAT IS GUTENBERG?
    2. TOURING GUTENBERG
    3. PRACTICAL EXAMPLES
    4. TECHNOLOGY STACK OF GUTENBERG
    5. “HELLO WORLD!” BLOCK
    6. WP‐CLI SCAFFOLDING
    7. CREATE‐GUTEN‐BLOCK TOOLKIT
    8. BLOCK DIRECTORY
    9. SUMMARY
  11. 8 Content
    1. CREATING CUSTOM POST TYPES
    2. POST METADATA
    3. META BOXES
    4. CREATING CUSTOM TAXONOMIES
    5. USING CUSTOM TAXONOMIES
    6. A POST TYPE, POST METADATA, AND TAXONOMY PLUGIN
    7. SUMMARY
  12. 9 Users and User Data
    1. WORKING WITH USERS
    2. ROLES AND CAPABILITIES
    3. LIMITING ACCESS
    4. CUSTOMIZING ROLES
    5. SUMMARY
  13. 10 Scheduled Tasks
    1. WHAT IS CRON?
    2. SCHEDULING CRON EVENTS
    3. TRUE CRON
    4. PRACTICAL USE
    5. SUMMARY
  14. 11 Internationalization
    1. INTERNATIONALIZATION AND LOCALIZATION
    2. CREATING TRANSLATION FILES
    3. SUMMARY
  15. 12 REST API
    1. WHAT THE REST API IS
    2. WHAT YOU CAN DO WITH THE REST API
    3. ACCESSING THE WORDPRESS REST API
    4. THE HTTP API
    5. WORDPRESS’ HTTP FUNCTIONS
    6. BRINGING IT ALL TOGETHER
    7. SUMMARY
  16. 13 Multisite
    1. TERMINOLOGY
    2. ADVANTAGES OF MULTISITE
    3. ENABLING MULTISITE IN WORDPRESS
    4. MULTISITE FUNCTIONS
    5. DATABASE SCHEMA
    6. QUERY CLASSES
    7. OBJECT CLASSES
    8. SUMMARY
  17. 14 The Kitchen Sink
    1. QUERYING AND DISPLAYING POSTS
    2. SHORTCODES
    3. WIDGETS
    4. DASHBOARD WIDGETS
    5. REWRITE RULES
    6. THE HEARTBEAT API
    7. SUMMARY
  18. 15 Debugging
    1. COMPATIBILITY
    2. DEBUGGING
    3. ERROR LOGGING
    4. QUERY MONITOR
    5. SUMMARY
  19. 16 The Developer Toolbox
    1. CORE AS REFERENCE
    2. PLUGIN DEVELOPER HANDBOOK
    3. CODEX
    4. TOOL WEBSITES
    5. COMMUNITY RESOURCES
    6. TOOLS
    7. SUMMARY
  20. INDEX
  21. END USER LICENSE AGREEMENT
3.143.0.157