SlideShare a Scribd company logo
Jonathan Bossenger
Let’s Code
Learn.WordPress.org
Converting a Shortcode into a Block
2
👋
Welcome!
As you join, feel free to
answer these questions in
the chat:
1. What region are you joining us from?
2. What do you do with WordPress?
3. What is your favourite thing about
WordPress?
Learn.WordPress.org
Let's code!
Converting a
Shortcode into a
Block
Jonathan Bossenger
Requirements
○ Local development environment configured with the required software
• https://wordpress.tv/2022/08/05/lets-code-an-introduction-to-block-development/
○ PHP Shortcode Plugin
• https://github.com/jonathanbossenger/wp-learn-
subscribe/releases/download/1.1.0/wp-learn-subscribe.1.1.0.zip
Announcements
○ Welcome, I don’t have a co-host today!
○ We’ll be presenting in focus mode.
○ You are welcome to ask questions.
○ You are welcome to unmute to ask questions, or post them in the chat.
○ If I am going too fast, please let me know!
○ We are recording this session, and it will be posted https://wordpress.tv/ afterwards
○ More more WordPress focused content please visit https://learn.wordpress.org/
Announcements
○ Shortcode plugin for this session
• https://github.com/jonathanbossenger/wp-learn-
subscribe/releases/download/1.1.0/wp-learn-subscribe.1.1.0.zip
○ Final code from this session:
• https://github.com/jonathanbossenger/wp-learn-subscribe/
• https://github.com/jonathanbossenger/wp-learn-
subscribe/releases/download/1.2.0/wp-learn-subscribe.1.2.0.zip
Learning Outcomes
○ Setting up the plugin for block development
○ Setting up the block registration in PHP
○ Creating the Edit component for the block editor
○ Creating the save function for front end rendering
○ Migrating the styles to the block (if there is time)
8
Let’s code.
Learn.WordPress.org
Thank You!
Questions?
Link Vault
○ https://wordpress.tv/2022/07/29/lets-code-common-apis-shortcodes/
○ https://wordpress.tv/2022/08/05/lets-code-an-introduction-to-block-development/
○ https://wordpress.tv/2022/08/10/using-the-create-block-tool/
○ https://developer.wordpress.org/block-editor/
○ https://developer.wordpress.org/block-editor/getting-started/create-block/block-anatomy/
○ https://developer.wordpress.org/block-editor/reference-guides/packages/packages-scripts/
○ https://developer.wordpress.org/reference/functions/register_block_type/
○ https://sass-lang.com/

More Related Content

PPTX
Developing Blocks without React - Block Supports.pptx
PPTX
Developing Blocks without React - Attributes.pptx
PPTX
Developing Blocks without React - Part 2
PPTX
Developing Blocks without React - Part 2.pptx
PPTX
Developing Blocks without React - Controls.pptx
PPTX
Let's code! What Happens When You Make Theme Changes
PPTX
The WordPress Create Block tool
PDF
Gutenberg (WidgiLabs Training Sessions)
Developing Blocks without React - Block Supports.pptx
Developing Blocks without React - Attributes.pptx
Developing Blocks without React - Part 2
Developing Blocks without React - Part 2.pptx
Developing Blocks without React - Controls.pptx
Let's code! What Happens When You Make Theme Changes
The WordPress Create Block tool
Gutenberg (WidgiLabs Training Sessions)

Similar to Let's code! Converting a Shortcode into a Block (12)

PPTX
Using Block Patterns in your Block Theme.pptx
PDF
Plugins on word press
PPTX
Let's code! Diving into theme.json
PPTX
Developing Blocks without React - Part 1
PPTX
Wordpress Shortcode
PPTX
Using Create Block Theme
PPTX
Internationalisation in Block Themes.pptx
PDF
Blockity McBlock Blocks, Oh My!
ODP
Building your first WordPress plugin
PPT
WordCamp Boston 2012 - Creating Content With Shortcodes
PPTX
Shortcodes vs Widgets: Which one and how?
PDF
Be the Change: The Future of WordPress with WP Engine's Developer Relations Team
Using Block Patterns in your Block Theme.pptx
Plugins on word press
Let's code! Diving into theme.json
Developing Blocks without React - Part 1
Wordpress Shortcode
Using Create Block Theme
Internationalisation in Block Themes.pptx
Blockity McBlock Blocks, Oh My!
Building your first WordPress plugin
WordCamp Boston 2012 - Creating Content With Shortcodes
Shortcodes vs Widgets: Which one and how?
Be the Change: The Future of WordPress with WP Engine's Developer Relations Team
Ad

More from Jonathan Bossenger (20)

PPTX
New WordPress Developer APIs The Interactivity API
PPTX
The WordPress HTML API
PPTX
PHP compatibility testing with PHPCompatibilityWP
PPTX
Common WordPress APIs_ Settings API
PPTX
Common WordPress APIs - Options API
PPTX
Common WordPress APIs_ HTTP API.pptx
PPTX
Common WordPress APIs: Metadata
PPTX
What’s new for developers_ (August 2023).pptx
PPTX
Testing your plugins for PHP version compatibility
PPTX
Common WordPress APIs_ Global Variables
PPTX
Common WordPress APIs_ Internationalization
PPTX
Testing WordPress 6.3 - Developer edition
PPTX
Common WordPress APIs: Responsive Images
PPTX
Common WordPress APIs - Dashboard Widgets
PPTX
Custom Tables in WordPress
PPTX
The WordPress Database
PPTX
WordPress Coding Standards
PPTX
Managing a WordPress Multisite Network
PPTX
Debugging in WordPress
PPTX
Testing plugins for PHP 8
New WordPress Developer APIs The Interactivity API
The WordPress HTML API
PHP compatibility testing with PHPCompatibilityWP
Common WordPress APIs_ Settings API
Common WordPress APIs - Options API
Common WordPress APIs_ HTTP API.pptx
Common WordPress APIs: Metadata
What’s new for developers_ (August 2023).pptx
Testing your plugins for PHP version compatibility
Common WordPress APIs_ Global Variables
Common WordPress APIs_ Internationalization
Testing WordPress 6.3 - Developer edition
Common WordPress APIs: Responsive Images
Common WordPress APIs - Dashboard Widgets
Custom Tables in WordPress
The WordPress Database
WordPress Coding Standards
Managing a WordPress Multisite Network
Debugging in WordPress
Testing plugins for PHP 8
Ad

Recently uploaded (20)

PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PDF
cuic standard and advanced reporting.pdf
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
NewMind AI Weekly Chronicles - August'25-Week II
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PPTX
Spectroscopy.pptx food analysis technology
PDF
Assigned Numbers - 2025 - Bluetooth® Document
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Spectral efficient network and resource selection model in 5G networks
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PDF
A comparative analysis of optical character recognition models for extracting...
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Unlocking AI with Model Context Protocol (MCP)
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
cuic standard and advanced reporting.pdf
Network Security Unit 5.pdf for BCA BBA.
NewMind AI Weekly Chronicles - August'25-Week II
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
The Rise and Fall of 3GPP – Time for a Sabbatical?
Spectroscopy.pptx food analysis technology
Assigned Numbers - 2025 - Bluetooth® Document
Encapsulation_ Review paper, used for researhc scholars
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Advanced methodologies resolving dimensionality complications for autism neur...
Spectral efficient network and resource selection model in 5G networks
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
A comparative analysis of optical character recognition models for extracting...
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Building Integrated photovoltaic BIPV_UPV.pdf
Per capita expenditure prediction using model stacking based on satellite ima...
Unlocking AI with Model Context Protocol (MCP)

Let's code! Converting a Shortcode into a Block

  • 2. 2 👋 Welcome! As you join, feel free to answer these questions in the chat: 1. What region are you joining us from? 2. What do you do with WordPress? 3. What is your favourite thing about WordPress?
  • 4. Requirements ○ Local development environment configured with the required software • https://wordpress.tv/2022/08/05/lets-code-an-introduction-to-block-development/ ○ PHP Shortcode Plugin • https://github.com/jonathanbossenger/wp-learn- subscribe/releases/download/1.1.0/wp-learn-subscribe.1.1.0.zip
  • 5. Announcements ○ Welcome, I don’t have a co-host today! ○ We’ll be presenting in focus mode. ○ You are welcome to ask questions. ○ You are welcome to unmute to ask questions, or post them in the chat. ○ If I am going too fast, please let me know! ○ We are recording this session, and it will be posted https://wordpress.tv/ afterwards ○ More more WordPress focused content please visit https://learn.wordpress.org/
  • 6. Announcements ○ Shortcode plugin for this session • https://github.com/jonathanbossenger/wp-learn- subscribe/releases/download/1.1.0/wp-learn-subscribe.1.1.0.zip ○ Final code from this session: • https://github.com/jonathanbossenger/wp-learn-subscribe/ • https://github.com/jonathanbossenger/wp-learn- subscribe/releases/download/1.2.0/wp-learn-subscribe.1.2.0.zip
  • 7. Learning Outcomes ○ Setting up the plugin for block development ○ Setting up the block registration in PHP ○ Creating the Edit component for the block editor ○ Creating the save function for front end rendering ○ Migrating the styles to the block (if there is time)
  • 10. Link Vault ○ https://wordpress.tv/2022/07/29/lets-code-common-apis-shortcodes/ ○ https://wordpress.tv/2022/08/05/lets-code-an-introduction-to-block-development/ ○ https://wordpress.tv/2022/08/10/using-the-create-block-tool/ ○ https://developer.wordpress.org/block-editor/ ○ https://developer.wordpress.org/block-editor/getting-started/create-block/block-anatomy/ ○ https://developer.wordpress.org/block-editor/reference-guides/packages/packages-scripts/ ○ https://developer.wordpress.org/reference/functions/register_block_type/ ○ https://sass-lang.com/

Editor's Notes

  • #2: TITLE SLIDE: Make a copy of this presentation to your Google Drive, and edit to replace with your details.