Skip to content

n8finch/php-for-wordpress-crash-course

Repository files navigation

PHP and WordPress PHP Crash Course


  1. Run through PHP features and syntax.
  2. Run through WordPress PHP features and helper functions.
  3. Set up coding standards, talk about package management, check out debugging.

Lessons

Part 1: PHP

  • Intro and setup.
  • Types: strings, ints, floats, boolean, arrays, object, NULL, resource
  • declaring variables
  • functions anonymous and named
  • arrays and syntax
  • conditional
  • loops
  • objects and syntax
  • classes: properties, method, scope (private, protected, public)
  • Templating with PHP
  • Superglobals and getting server and browser info.
  • Adding docblock comments.

Part 2: WordPress

  • Intro to the world of WordPress PHP, the Codex, and Dev Resources
  • The Loop
  • Globals
  • Template tags
  • Conditionals
  • WP helper functions
  • Vaidating, sanitizing, and escaping data
  • Enqueue functions and concept
  • Plugin API
  • Custom Post Types
  • WP_Query
  • wpdb

Part 3: Standards and Debugging

  • Setup PHPCS
  • Kint and Whoops
  • xDebug
  • Packagist and packages

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages