code: def list_plugins(path, user):
      '''
      List plugins in an installed wordpress path
  
      path
          path to wordpress install location
  
      user
          user to run the command as
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' wordpress.list_plugins /var/www/html apache
      '''
      ret = []
      resp = __salt__['cmd.shell']((
          'wp --path={0} plugin list'
      ).format(path), runas=user)
      for line in resp.split('\n')[1:]:
          ret.append(line.split('\t'))
      return [plugin.__dict__ for plugin in map(_get_plugins, ret)f list_plugins(path, user):
      '''
      List plugins in an installed wordpress path
  
      path
          path to wordpress install location
  
      user
          user to run the command as
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' wordpress.list_plugins /var/www/html apache
      '''
      ret = []
      resp = __salt__['cmd.shell']((
          'wp --path={0} plugin list'
      ).format(path), runas=user)
      for line in resp.split('\n')[1:]:
          ret.append(line.split('\t'))
      return [plugin.__dict__ for plugin in map(_get_plugins, ret)]
docs: List plugins in an installed wordpress path
  
      path
          path to wordpress install location
  
      user
          user to run the command as
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' wordpress.list_plugins /var/www/html apache