Common WordPress APIs - Dashboard Widgets

Jonathan Bossenger
Jonathan BossengerCode instructor/ex-developer en Automattic
1
Common WordPress APIs:
Dashboard Widgets
Jonathan Bossenger
Learn.WordPress.org
2
👋🏽 Welcome!
As you join, let everyone know in the chat where you’re
joining us from…
Hello!
○ My name is Jonathan Bossenger
○ From Cape Town, South Africa
○ Developer educator at Automattic
○ Sponsored to work with the Training Team
○ jonathanbossenger.com
Learn.WordPress.org
Dashboard Widgets
Jonathan Bossenger
Announcements
○ Welcome, and thanks to Asad for co-hosting.
○ Please let me know if you can’t see this slide!
○ We are presenting in focus mode, but please feel free to enable your video.
○ You are welcome to ask questions.
○ You are welcome to post questions in the chat, or unmute to ask questions.
Announcements
○ Make sure your local install is ready
○ If I am going too fast, please let me know!
○ We will be posting this session to https://wordpress.tv/ afterwards.
○ For WordPress tutorials and courses please visit https://learn.wordpress.org/
○ For WordPress developer news and updates please visit
https://developer.wordpress.org/news/
Learning outcomes
○ The dashboard widgets API.
• What is the dashboard widgets API and why it’s useful
• How to use the dashboard widgets API
• Adding a dashboard widget
• Adding a widget control
• Widget callback arguments
• Widget context and priority
Requirements
○ A local WordPress install
○ A text editor
○ Some post data
• https://wordpress.org/plugins/fakerpress/
○ An empty plugin
• We’ll create this in the workshop
Let’s go!
Resources
○ https://developer.wordpress.org/apis/dashboard-widgets/
○ https://developer.wordpress.org/reference/functions/wp_add_dashboard_widget/
○ https://developer.wordpress.org/reference/hooks/wp_dashboard_setup/
○ https://developer.wordpress.org/reference/functions/wp_get_recent_posts/
○ https://developer.wordpress.org/reference/functions/update_option/
○ https://developer.wordpress.org/reference/functions/get_option/
1 de 9

Recomendados

Ch13 electrical systemsCh13 electrical systems
Ch13 electrical systems_AXE_PM
2.4K vistas61 diapositivas
C sectionC section
C sectionPriya V
2.8K vistas31 diapositivas
Normal laborNormal labor
Normal laborFahad AlHulaibi
37.8K vistas70 diapositivas
Windows 7 installation Windows 7 installation
Windows 7 installation frexyanne
703 vistas22 diapositivas
Implantation bleedingImplantation bleeding
Implantation bleedingAMULYA GRACE
11.6K vistas8 diapositivas

Más contenido relacionado

La actualidad más candente(20)

Uterine inversion Uterine inversion
Uterine inversion
AdnaAbdisalam115 vistas
Respectful Maternity CareRespectful Maternity Care
Respectful Maternity Care
Pokhara University, Pokhara, Nepal8.7K vistas
4 stages of labor and birth4 stages of labor and birth
4 stages of labor and birth
jenniferojeda21.2K vistas
Windows 11 for the EnterpriseWindows 11 for the Enterprise
Windows 11 for the Enterprise
David J Rosenthal483 vistas
Pelvic-floor-presentation.pptxPelvic-floor-presentation.pptx
Pelvic-floor-presentation.pptx
SatrioSarwo178 vistas
Disk ManagementDisk Management
Disk Management
Anjali Negi6.1K vistas
04 NORMAL LABOUR.pptx04 NORMAL LABOUR.pptx
04 NORMAL LABOUR.pptx
CharlesMwamba495 vistas
Rupture of uterusRupture of uterus
Rupture of uterus
sajeethavijayakumar1.9K vistas
Induction of labourInduction of labour
Induction of labour
Deepa Mishra1.1K vistas
Normal labor and deliveryNormal labor and delivery
Normal labor and delivery
Abie Dabs32.7K vistas
Postpartum hemorrhagePostpartum hemorrhage
Postpartum hemorrhage
Reproductive & Child Health Research Unit (RCRU)4.8K vistas
Giao trinh gia cong nhieu truc Mastercam X7Giao trinh gia cong nhieu truc Mastercam X7
Giao trinh gia cong nhieu truc Mastercam X7
Trung tâm Advance Cad6.4K vistas
Uterine malformationsUterine malformations
Uterine malformations
Asha Bhat41.4K vistas
Current trends in obgCurrent trends in obg
Current trends in obg
National Forensic Science University33.6K vistas
15femalesterilization15femalesterilization
15femalesterilization
Eugene Hugho1K vistas
Caesarean section (techniques)              pgpCaesarean section (techniques)              pgp
Caesarean section (techniques) pgp
Paul E. Ndeki277 vistas

Similar a Common WordPress APIs - Dashboard Widgets

Similar a Common WordPress APIs - Dashboard Widgets(20)

Common WordPress APIs_ InternationalizationCommon WordPress APIs_ Internationalization
Common WordPress APIs_ Internationalization
Jonathan Bossenger21 vistas
Common WordPress APIs: MetadataCommon WordPress APIs: Metadata
Common WordPress APIs: Metadata
Jonathan Bossenger64 vistas
Common WordPress APIs - Options APICommon WordPress APIs - Options API
Common WordPress APIs - Options API
Jonathan Bossenger48 vistas
Common WordPress APIs_ Settings APICommon WordPress APIs_ Settings API
Common WordPress APIs_ Settings API
Jonathan Bossenger52 vistas
Common WordPress APIs_ Global VariablesCommon WordPress APIs_ Global Variables
Common WordPress APIs_ Global Variables
Jonathan Bossenger36 vistas
Custom Tables in WordPressCustom Tables in WordPress
Custom Tables in WordPress
Jonathan Bossenger80 vistas
Common WordPress APIs: Responsive ImagesCommon WordPress APIs: Responsive Images
Common WordPress APIs: Responsive Images
Jonathan Bossenger66 vistas
The WordPress Create Block toolThe WordPress Create Block tool
The WordPress Create Block tool
Jonathan Bossenger69 vistas
The WordPress HTML APIThe WordPress HTML API
The WordPress HTML API
Jonathan Bossenger42 vistas
Testing WordPress 6.3 - Developer editionTesting WordPress 6.3 - Developer edition
Testing WordPress 6.3 - Developer edition
Jonathan Bossenger23 vistas
Debugging in WordPressDebugging in WordPress
Debugging in WordPress
Jonathan Bossenger20 vistas
The WordPress DatabaseThe WordPress Database
The WordPress Database
Jonathan Bossenger52 vistas
Help test WordPress - developer editionHelp test WordPress - developer edition
Help test WordPress - developer edition
Jonathan Bossenger34 vistas
The WordPress Request LifecycleThe WordPress Request Lifecycle
The WordPress Request Lifecycle
Jonathan Bossenger32 vistas
Testing plugins for PHP 8Testing plugins for PHP 8
Testing plugins for PHP 8
Jonathan Bossenger45 vistas
Let's code: WordPress multisite experimentsLet's code: WordPress multisite experiments
Let's code: WordPress multisite experiments
Jonathan Bossenger14 vistas

Más de Jonathan Bossenger(12)

Common WordPress APIs_ HTTP API.pptxCommon WordPress APIs_ HTTP API.pptx
Common WordPress APIs_ HTTP API.pptx
Jonathan Bossenger19 vistas
WordPress Coding StandardsWordPress Coding Standards
WordPress Coding Standards
Jonathan Bossenger116 vistas
Managing a WordPress Multisite NetworkManaging a WordPress Multisite Network
Managing a WordPress Multisite Network
Jonathan Bossenger12 vistas
Introduction to WordPress Multisite NetworksIntroduction to WordPress Multisite Networks
Introduction to WordPress Multisite Networks
Jonathan Bossenger15 vistas
Developing for multisiteDeveloping for multisite
Developing for multisite
Jonathan Bossenger107 vistas
Custom Post Types and Capabilities.pptxCustom Post Types and Capabilities.pptx
Custom Post Types and Capabilities.pptx
Jonathan Bossenger25 vistas
Creating a WordPress multisite networkCreating a WordPress multisite network
Creating a WordPress multisite network
Jonathan Bossenger49 vistas
WP REST API - custom routes and endpointsWP REST API - custom routes and endpoints
WP REST API - custom routes and endpoints
Jonathan Bossenger31 vistas
WP REST API - modifying responsesWP REST API - modifying responses
WP REST API - modifying responses
Jonathan Bossenger13 vistas

Common WordPress APIs - Dashboard Widgets

  • 1. 1 Common WordPress APIs: Dashboard Widgets Jonathan Bossenger Learn.WordPress.org
  • 2. 2 👋🏽 Welcome! As you join, let everyone know in the chat where you’re joining us from… Hello! ○ My name is Jonathan Bossenger ○ From Cape Town, South Africa ○ Developer educator at Automattic ○ Sponsored to work with the Training Team ○ jonathanbossenger.com
  • 4. Announcements ○ Welcome, and thanks to Asad for co-hosting. ○ Please let me know if you can’t see this slide! ○ We are presenting in focus mode, but please feel free to enable your video. ○ You are welcome to ask questions. ○ You are welcome to post questions in the chat, or unmute to ask questions.
  • 5. Announcements ○ Make sure your local install is ready ○ If I am going too fast, please let me know! ○ We will be posting this session to https://wordpress.tv/ afterwards. ○ For WordPress tutorials and courses please visit https://learn.wordpress.org/ ○ For WordPress developer news and updates please visit https://developer.wordpress.org/news/
  • 6. Learning outcomes ○ The dashboard widgets API. • What is the dashboard widgets API and why it’s useful • How to use the dashboard widgets API • Adding a dashboard widget • Adding a widget control • Widget callback arguments • Widget context and priority
  • 7. Requirements ○ A local WordPress install ○ A text editor ○ Some post data • https://wordpress.org/plugins/fakerpress/ ○ An empty plugin • We’ll create this in the workshop
  • 9. Resources ○ https://developer.wordpress.org/apis/dashboard-widgets/ ○ https://developer.wordpress.org/reference/functions/wp_add_dashboard_widget/ ○ https://developer.wordpress.org/reference/hooks/wp_dashboard_setup/ ○ https://developer.wordpress.org/reference/functions/wp_get_recent_posts/ ○ https://developer.wordpress.org/reference/functions/update_option/ ○ https://developer.wordpress.org/reference/functions/get_option/