Skip to content

Latest commit

 

History

History
45 lines (37 loc) · 1023 Bytes

README.md

File metadata and controls

45 lines (37 loc) · 1023 Bytes

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