Presentation Title: Building Your First WordPress Plugin
Presentation Description: Learn the fundamentals by creating a practical WordCamp Notes plugin that attendees can use during the conference.
This example demonstrates how to create a basic WordPress plugin from scratch using WordPress Playground. You'll build a WordCamp Notes plugin that allows users to take and organize notes during sessions.
- WordPress plugin structure and organization
- Custom Post Type registration
- WordPress Playground blueprints
- Plugin activation and basic functionality
- Copy the contents of
blueprint.json - Go to WordPress Playground
- Click "Import Blueprint" and paste the JSON
- The plugin will be automatically installed and activated
plugin.php- Main plugin file with Custom Post Type registrationblueprint.json- WordPress Playground configuration
The plugin registers a custom post type called wc_note for storing WordCamp session notes. It includes:
- Session tracking (title, speaker, time)
- Note content management
- Minimal dependencies
After running the blueprint, you should see:
- A new "WordCamp Notes" menu item in the WordPress admin
- Ability to create, edit, and manage notes
- Custom post type working in the admin area
- Add custom meta boxes for session details
- Implement note categories
- Add custom fields for speaker and session time
- 02. Translations - Add Greek translations
- 03. Dashboard Widget - Add dashboard widget