100%
  • Home
  • Courses
    • View All
Login
  • Home
  • Courses
  • Log In
  • View All
Home WordPress Training Program Advanced Concepts πŸ“œ WP-CLI

Course Lessons

WordPress Training Program

1 Getting started with WordPress πŸ“£
  • What is WordPress
  • Creating a blog and writing daily updates ✍️
  • Installing WordPress
  • WordPress Terminology πŸ“ƒ
  • How WordPress works
  • Understanding WordPress Database Schema
  • Using themes and plugins
2 Setting up Development Environment πŸ‘¨β€πŸ’»
  • Introduction to Git and SVN πŸ”„
  • Setting up an Integrated Development Environment (IDE)
  • Pushing changes to site via Git commits/branches
  • Setting up Z shell and Oh My Zsh for fast command line work
3 Coding Standards and Best Practices πŸ’―
  • WordPress Coding Standards (WPCS)
  • PHP_CodeSniffer (PHPCS)
  • Peer Code Review
  • Security πŸ›‘οΈ
  • WordPress Documentation Schema
4 Plugin Development πŸ› οΈ
  • Introduction to plugin development
  • Hooks: Actions and Filters
  • Custom Post Types and Taxonomies
  • WordPress Core APIs
  • WP_Query (Custom Query)
  • WordPress AJAX
  • Interacting with remote data and APIs
  • Plugin development assignment
5 Theme Development πŸ‘€
  • Anatomy and architecture of a theme
  • Theme Stylesheet and Functions file
  • Template files and hierarchy
  • Customizer
  • Asset Building using Webpack & Babel
  • Child Themes
  • Handling Media in WordPress
  • Theme development assignment
6 Debugging 🐞
  • Introduction to Xdebug
  • EasyEngine site debugging with docker commands
  • How to check Nginx, PHP, and WP Debug logs
7 Advanced Concepts πŸ“œ
  • WP-CLI
  • REST API
  • Roles and Capabilities
  • Caching
  • Custom Database Table Creation
  • Optimization ⚑
  • Users and User metadata
  • Cron β³βš™οΈ
  • Background Processing
  • Internalization and Localization 🌐
  • Multisite
  • Email with WordPress πŸ“§
8 Block Editor (Gutenberg) πŸ—οΈ
  • Default Blocks
  • Creating a block
9 Testing πŸ€“
  • PHPUnit Test
  • JavaScript: QUnit, Jest
  • ESLint, JSLint, JSHint, JSCS
  • CSS: Stylelint
10 Extras πŸ˜ƒ
  • Decoupled
  • GraphQL
  • React and Next.js
  • WooCommerce πŸ›’
  • Accessibility (WCAG 2.0) πŸ”
11 Contributing to WordPress ❀️
12 Server Side πŸ–₯️
  • How to check CPU/Memory/Disk Space on a server
  • Rsync and SSH basics
  • How to sync one site with other using WP-CLI and rsync
  • Tmux basics
13 Congratulations πŸ₯³
Return to WordPress Training Program

Trainer(s)

There is no group/trainer

WordPress Training Program

WP-CLI

Developers delight! You can now manage your WordPress site right from the command line usingΒ WP-CLI. Managing your site directly from the command line is definitely faster than managing it from a web browser. For more information about WP-CLI, you can refer to theΒ WP-CLI Handbook. πŸ‘©β€πŸ’»

You can check WP CLI Brief here.

Default WP-CLI Commands

Since there are a lot of functions that are supported by WP-CLI, there are separate commands to execute each action. But most of them are straight forward. For example, the β€˜wp admin’ command opens your admin area in the web browser whereas the β€˜wp config’ command generates and reads the wp-config.php file.

Some commands have subcommands which allow you to fine-tune your query.

For example, the β€˜wp media’ command allows you to list, create, assign, and delete an active theme’s navigation menu. But to perform each of this action, you need to use different subcommands –

  • wp menu to create a new menu
  • wp menu delete to delete one or more menus
  • wp menu list to get a list of menus

Here is a list of all the default WP-CLI commands – WP-CLI Commands.

Other useful commands

  • wp profile command β€“ Quickly identify what’s slowing your WordPress site
  • wp doctor command β€“ Diagnose problems within WordPress by running a series of checks for symptoms

Create custom commands in WP-CLI

Apart from the default commands, you can also create your own custom WP-CLI commands. That’s the level of flexibility it offers. Also, there’s no limit to what you can do with WP-CLI when you are managing your website from the command line.

For more information on how to create custom WP-CLI commands, have a look at the Commands Cookbook.

How to export or import DB with WP-CLI

Using WP-CLI’s β€˜wp db’ command, you can even export or import your database right from the terminal. Have a look at the below subcommands to read more about them.

  • wp db export β€“ Exports the database to a file or to STDOUT.
  • wp db import β€“ Imports a database from a file or from STDIN.

References

  • An Introduction to WP-CLI
  • Learn WP-CLI
Copyright 2017-25 All Rights Reserved | Designed by WisdmLabs