Options
All
  • Public
  • Public/Protected
  • All
Menu

Module commands/wp-cli-eval

Index

Functions

Functions

  • wpCliEval(command: string): void
  • Run PHP code as WP CLI eval-file command

    example
    cy.wpCliEval('<?php for($i=0; $i<10; $i++) { echo $i; }').then(response=>{
    const output = response.stdout;
    // Do whatever with the output.
    })

    Parameters

    • command: string

      PHP code to execute with WP CLI. The '<?php ' prefix is optional.

    Returns void

Generated using TypeDoc