Class to access elements via WP-CLI.
Description
Source
File: src/db-objects/elements/cli-elements-command.php
class CLI_Elements_Command extends CLI_Models_Command { /** * Constructor. * * @since 1.0.0 * * @param Manager $manager The manager instance. */ public function __construct( $manager ) { parent::__construct( $manager ); $this->obj_fields = array( 'id', 'container_id', 'label', 'sort', 'type' ); } }
Changelog
Version | Description |
---|---|
1.0.0 | Introduced. |
Methods
- __construct — Constructor.