WP_CLI\Iterators

Transform::add_transform()publicWP-CLI 1.0

Method of the class: Transform{}

No Hooks.

Return

null. Nothing.

Usage

$Transform = new Transform();
$Transform->add_transform( $fn );
$fn (required)
-

Transform::add_transform() code WP-CLI 2.8.0-alpha

public function add_transform( $fn ) {
	$this->transformers[] = $fn;
}