Skip to content

12 articles

#WP-CLI (page 2)

Every article tagged WP-CLI, newest first. Search all articles

  • A brass key console feeds one punched card into a big machine that sorts thousands of small glowing pieces into bins in batches.Development

    6 min read

    How to write a custom WP-CLI command for your plugin

    A WP CLI custom command belongs in your plugin when a maintenance or data task needs a repeatable command-line interface. Register a command class only when WP-CLI is running, describe its arguments in PHPDoc, then add dry-run handling, bounded batches, machine-readable output and exit codes.

    • WP-CLI
    • WordPress
    • Plugins
    Read article
  • An overstuffed backpack tips a scale into the red while glowing arrows move rarely used items onto a nearby shelf.Performance

    8 min read

    WordPress autoloaded options: measure and review wp_options

    WordPress autoloaded options are rows in wp_options that WordPress loads into the alloptions array during a normal request. Measure the core autoload set, identify the largest rows and their owners, then disable autoload only for options that are not needed broadly.

    • WordPress
    • wp_options
    • MySQL
    Read article