classes/cli/PodsAPI_CLI_Command.php
public function deactivate_component( $args, $assoc_args ) {

		if ( ! class_exists( 'PodsInit' ) ) {
			WP_CLI::error( __( 'PodsInit not available', 'pods' ) );

			return;
		}

		$component = $assoc_args['component'];

		$active = PodsInit::$components->is_component_active( $component );

		if ( ! $active ) {
			WP_CLI::error( sprintf( __( 'Component %s is not active.', 'pods' ), $component ) );
		} else {
			PodsInit::$components->deactivate_component( $component );

			WP_CLI::success( __( 'Component deactivated.', 'pods' ) );
		}

	}
public function deactivate_component( $args, $assoc_args ) {

		if ( ! class_exists( 'PodsInit' ) ) {
			WP_CLI::error( __( 'PodsInit not available', 'pods' ) );

			return;
		}

		$component = $assoc_args['component'];

		$active = PodsInit::$components->is_component_active( $component );

		if ( ! $active ) {
			WP_CLI::error( sprintf( __( 'Component %s is not active.', 'pods' ), $component ) );
		} else {
			PodsInit::$components->deactivate_component( $component );

			WP_CLI::success( __( 'Component deactivated.', 'pods' ) );
		}

	}
public function deactivate_component ( $ args , $ assoc_args ) { if ( ! class_exists ( 'PodsInit' ) ) { WP_CLI :: error ( __ ( 'PodsInit not available' , 'pods' ) ) ; return ; } $ component = $ assoc_args [ 'component' ] ; $ active = PodsInit :: $ components -> is_component_active ( $ component ) ; if ( ! $ active ) { WP_CLI :: error ( sprintf ( __ ( 'Component %s is not active.' , 'pods' ) , $ component ) ) ; } else { PodsInit :: $ components -> deactivate_component ( $ component ) ; WP_CLI :: success ( __ ( 'Component deactivated.' , 'pods' ) ) ; } }
Deactivate a component.

## OPTIONS

--component=<component>
: The component identifier.

## EXAMPLES

wp pods-api deactivate-component --component=templates

@subcommand deactivate-component

@param $args
@param $assoc_args
Deactivate a component .