public function remove( $args = array(), $assoc_args = array() ) {

		if ( ! \WP_CLI\Utils\get_flag_value( $assoc_args, 'all' ) && empty( $args ) ) {
			WP_CLI::error( 'You must specify at least one mod or use --all.' );
		}

		if ( \WP_CLI\Utils\get_flag_value( $assoc_args, 'all' ) ) {
			remove_theme_mods();
			WP_CLI::success( 'Theme mods removed.' );
			return;
		}

		foreach ( $args as $mod ) {
			remove_theme_mod( $mod );
		}

		$count           = count( $args );
		$success_message = ( 1 === $count ) ? '%d mod removed.' : '%d mods removed.';
		WP_CLI::success( sprintf( $success_message, $count ) );

	}
public function remove( $args = array(), $assoc_args = array() ) {

		if ( ! \WP_CLI\Utils\get_flag_value( $assoc_args, 'all' ) && empty( $args ) ) {
			WP_CLI::error( 'You must specify at least one mod or use --all.' );
		}

		if ( \WP_CLI\Utils\get_flag_value( $assoc_args, 'all' ) ) {
			remove_theme_mods();
			WP_CLI::success( 'Theme mods removed.' );
			return;
		}

		foreach ( $args as $mod ) {
			remove_theme_mod( $mod );
		}

		$count           = count( $args );
		$success_message = ( 1 === $count ) ? '%d mod removed.' : '%d mods removed.';
		WP_CLI::success( sprintf( $success_message, $count ) );

	}
public function remove ( $ args = array ( ) , $ assoc_args = array ( ) ) { if ( ! \ WP_CLI \ Utils \ get_flag_value ( $ assoc_args , 'all' ) && empty ( $ args ) ) { WP_CLI :: error ( 'You must specify at least one mod or use --all.' ) ; } if ( \ WP_CLI \ Utils \ get_flag_value ( $ assoc_args , 'all' ) ) { remove_theme_mods ( ) ; WP_CLI :: success ( 'Theme mods removed.' ) ; return ; } foreach ( $ args as $ mod ) { remove_theme_mod ( $ mod ) ; } $ count = count ( $ args ) ; $ success_message = ( 1 === $ count ) ? '%d mod removed.' : '%d mods removed.' ; WP_CLI :: success ( sprintf ( $ success_message , $ count ) ) ; }
Removes one or more theme mods.

## OPTIONS

[<mod>...]
: One or more mods to remove.

[--all]
: Remove all theme mods.

## EXAMPLES

# Remove all theme mods.
$ wp theme mod remove --all
Success: Theme mods removed.

# Remove single theme mod.
$ wp theme mod remove background_color
Success: 1 mod removed.

# Remove multiple theme mods.
$ wp theme mod remove background_color header_textcolor
Success: 2 mods removed.
Removes one or more theme mods .