Table of Contents
1 COVER
2 FOREWORD
3 INTRODUCTION WHO THIS BOOK IS FOR WHAT YOU NEED TO USE THIS BOOK WHAT THIS BOOK COVERS HOW THIS BOOK IS STRUCTURED CONVENTIONS SOURCE CODE ERRATA
4 1 An Introduction to Plugins WHAT IS A PLUGIN? AVAILABLE PLUGINS ADVANTAGES OF PLUGINS INSTALLING AND MANAGING PLUGINS SUMMARY
5 2 Plugin Framework REQUIREMENTS FOR PLUGINS BEST PRACTICES PLUGIN HEADER DETERMINING PATHS ACTIVATE/DEACTIVATE FUNCTIONS UNINSTALL METHODS CODING STANDARDS SUMMARY
6 3 Dashboard and Settings ADDING MENUS AND SUBMENUS PLUGIN SETTINGS THE OPTIONS API THE SETTINGS API KEEPING IT CONSISTENT SUMMARY
7 4 Security and Performance SECURITY OVERVIEW USER PERMISSIONS NONCES DATA VALIDATION AND SANITIZATION FORMATTING SQL STATEMENTS SECURITY GOOD HABITS PERFORMANCE OVERVIEW CACHING TRANSIENTS SUMMARY
8 5 Hooks UNDERSTANDING HOOKS ACTIONS FILTERS USING HOOKS FROM WITHIN A CLASS USING HOOKS WITH ANONYMOUS FUNCTIONS CREATING CUSTOM HOOKS FINDING HOOKS SUMMARY
9 6 JavaScript REGISTERING SCRIPTS ENQUEUEING SCRIPTS LIMITING SCOPE LOCALIZING SCRIPTS INLINE SCRIPTS OVERVIEW OF BUNDLED SCRIPTS POLYFILLS YOUR CUSTOM SCRIPTS jQuery BACKBONE/UNDERSCORE REACT SUMMARY
10 7 Blocks and Gutenberg WHAT IS GUTENBERG? TOURING GUTENBERG PRACTICAL EXAMPLES TECHNOLOGY STACK OF GUTENBERG “HELLO WORLD!” BLOCK WP‐CLI SCAFFOLDING CREATE‐GUTEN‐BLOCK TOOLKIT BLOCK DIRECTORY SUMMARY
11
8 Content
CREATING CUSTOM POST TYPES
POST METADATA
META BOXES