WordPress Meetup Stuttgart
Prepare (Flo)
- Start Docker
- Install WordPress
Plugin file (Matthias)
- Plugin Header
- Namespace
- In WordPress: activate Plugin
Custom Post Type (Flo)
- Namespace
function register_podcast_cpt()
function init()
- What is an action
Plugin file (Matthias)
function init()
- Add CPT include &
WMSP\CPT\init()
call - In WordPress: Show Podcast Menu/List View
Editor (Flo)
- Add new Podcast
- Add Enclosure URL as post-meta (
wmsp_enclosure
)
- Add Enclosure URL as post-meta (
- Publish
- Show Post
Frontend (Matthias)
function add_player
(withoutbefore
&after
)function init
- Explain filters
- Show Frontend with embedded player
- Add Frontend include &
WMSP\Frontend\init()
call
Admin (Flo)
function register_settings()
(without sanitize)function field()
- sanitize
function init()
- Add Admin include &
WMSP\Admin\init()
call - Open Settings/change Settings
Frontend (Matthias)
- Implement
before
&after
code infunction add_player
- Show frontend
- Change Settings and show changed result in frontend
Frontend (Flo)
- Add styling
function enqueue_style()
- Explain
wp_enqueue_style
- Add and explain
wp_enqueue_scripts
toinit
- Show frontend/archive
Endpoint (optional) (Matthias)
function register_rest_endpoint()
- Explain
register_rest_route
function list_podcasts()
without filter- Show output with missing "enclosure"
- Add and explain
apply_filters
function extend_posts_data
- Show filtered output