PHP Debug External API data Query in WordPress
Channel: TechiePress
Date: 2022-12-15

Welcome to our tutorial on debugging PHP code in WordPress! In this video, we'll be using PHP var_dump and error_log to understand the data we've queried from an external API in WordPress.

This video builds on our previous tutorial, "Display Queried External API data on the WordPress Front-end using Shortcodes," via  https://www.youtube.com/watch?v=I-P183PvRIQ which can be found at the link provided in the description. We'll be continuing to work with external API data, but this time we'll focus on understanding how data is uniquely handled in WordPress when it comes to objects and arrays.

By the end of this tutorial, you'll have a better understanding of how to debug your PHP code in WordPress and how to work with objects and arrays in your API queries.

Thanks for watching!

Starter Code sample: https://github.com/YTTechiePress/external-data-api-shortcode

VIDEO CHAPTERS
00:00 Intro
00:23 Starter video
00:35 Determining queried data
01:07 Var_dump() method
03:00 Using pre tags
03:25 Working objects & arrays
04:30 WordPress core PHP API
06:20 WordPress core Version API
08:50 Handle Non-visual data display
09:30 Using error_log() & print_r()
10:40 WordPress debug.log file
12:30 Conclusion

HOW TO SUPPORT THE CHANNEL
=============================================
Do you like what I am doing?
- Buy me a coffee through https://www.buymeacoffee.com/techiepress 
- Give via PayPal: https://paypal.me/laurencebahiirwa
- Visit https://omukiguy.com/support-my-work/

-------------------------------------------------------------------------------
LEARN MORE IN THE WELL CURATED PLAYLISTS BELOW
--------------------------------------------------------------------------------

Learn how to build a plugin from scratch: https://youtu.be/9LtXEMRNln8?t=145

WooCommerce E-Commerce customizations
== Build Free Custom E-commerce Online Shop using WooCommerce - https://www.youtube.com/playlist?list=PLNqG1qGUllk2qFmbexV2SikF8bXqvDW-H

== Build Free Custom Theme for E-commerce Online Shop using WooCommerce - 
https://www.youtube.com/playlist?list=PLNqG1qGUllk0uFqUvFFIJ67dSNBKapd7Y

====== Build Dynamic Websites with Elementor  ======

== Learn the Elementor basics  - https://www.youtube.com/playlist?list=PLNqG1qGUllk27BK71LBJDw4auOl-aVOqG

== Build a custom Elementor Widget from Scratch - https://www.youtube.com/playlist?list=PLNqG1qGUllk2pukgHP385ll0ENmRr9E_M

====== How to use WordPress Gutenberg Block Editor ======

WordPress 5.4 Gutenberg Blocks Updates 
== https://www.youtube.com/playlist?list=PLNqG1qGUllk0lI2Omhvp54Qn9-MIEhQzX 

WordPress Gutenberg blocks for Designers 
== https://www.youtube.com/playlist?list=PLNqG1qGUllk3DY91Bq_26L8meIXM_Uo4E 

Gutenberg WordPress Block Editor tutorials for beginners
== https://www.youtube.com/playlist?list=PLNqG1qGUllk2xOKt79aI12GgX2DX0aNx-

Custom WooCommerce Gateway Development from Scratch
== https://www.youtube.com/playlist?list=PLNqG1qGUllk21IES6ZJ2WkX1BcbPQF4-7

WordPress Custom REST API Namespaces, Endpoints and Examples from Scratch
== https://www.youtube.com/playlist?list=PLNqG1qGUllk0npc2ZGPU358Q6S1itFCYR

====== WordPress Plugin Development from Scratch ======

Build Most Popular & Most Commented Post Plugin
== https://www.youtube.com/playlist?list=PLNqG1qGUllk05gUz_VB5nCHEN9A3OpS94

Build SMS Plugin with External WordPress API Integration using custom WordPress Databases
== https://www.youtube.com/playlist?list=PLNqG1qGUllk0NSTrNF2xa1zHNzMi3M7su

WordPress External APIs Integration Plugin Development
== https://www.youtube.com/playlist?list=PLNqG1qGUllk0U2-5ZBNxSNxQrPO-4CqnR

Convert WordPress to mobile App in Headless WordPress
== Convert WordPress Sports Website into Mobile Application - https://www.youtube.com/playlist?list=PLNqG1qGUllk3qMrJcXUeP1Ge5U4fKtAR 

Make GraphQL API endpoints with WordPress Headless CMS WPGraphQL Plugin 
== https://www.youtube.com/playlist?list=PLNqG1qGUllk03llIgPYGVTwY14lAPDkBp

Customize Your WordPress & ClassicPress
== Build Custom REST API Endpoints with WordPress or ClassicPress - https://www.youtube.com/playlist?list=PLNqG1qGUllk06KZP9N1nRG-FpnTr_TD9u

Custom Dashboard Widgets
== https://www.youtube.com/playlist?list=PLNqG1qGUllk2h51557gV74x8p1RrlEmah

Build Custom Admin
== https://www.youtube.com/playlist?list=PLNqG1qGUllk1M5L8Xo-K1g6B3OrkliKDs

Learn Git
== Git tutorial for writers + software developers for beginners - https://www.youtube.com/playlist?list=PLNqG1qGUllk2PnSJiUw1SCjiS6pNhIR2f