public function deactivate_plugin( $slug )
	{
		$element = $this->search_plugin( $slug );
		if ( ! $element ) {
			throw new \Exception( sprintf(
				"The %s plugin is not installed.",
				$slug
			) );
		}
		$edit = $element->find( 'css', '.deactivate a' );
		$edit->click();
		sleep( 1 );
	}
public function deactivate_plugin( $slug )
	{
		$element = $this->search_plugin( $slug );
		if ( ! $element ) {
			throw new \Exception( sprintf(
				"The %s plugin is not installed.",
				$slug
			) );
		}
		$edit = $element->find( 'css', '.deactivate a' );
		$edit->click();
		sleep( 1 );
	}
public function deactivate_plugin ( $ slug ) { $ element = $ this -> search_plugin ( $ slug ) ; if ( ! $ element ) { throw new \ Exception ( sprintf ( "The %s plugin is not installed." , $ slug ) ) ; } $ edit = $ element -> find ( 'css' , '.deactivate a' ) ; $ edit -> click ( ) ; sleep ( 1 ) ; }
Deactivate the plugin.

@param string $slug The slug of the plugin.
@throws \Exception
Deactivate the plugin .