0

My snippets.cson:-

'*':
  'WordPress theme directory':
    'prefix': 'wpThemeDirectoryUri'
    'body': """
    get_template_directory_uri()
        """

'*':
  'WordPress Site URL (No Trailing Slash)':
    'prefix': 'wpSiteUrl'
    'body': """
      site_url()
        """

In the editor, when I press alt + shift + s hotkey to search for available snippets and type "wp", it lists only wpSiteUrl.

Should not it also list wpThemeDirectoryUri?

If I remove second snippet. It lists wpThemeDirectoryUri.

I've big snippets and your solution must support multiline snippets.

Omar Tariq
  • 7,536
  • 10
  • 38
  • 57

1 Answers1

0

After reading @lee-dohm answer at:-

Atom Editor: multiple snippets

I found the solution:-

'*':
  'WordPress theme directory':
    'prefix': 'wpThemeDirectoryUri'
    'body': """
    get_template_directory_uri()
        """

  'WordPress Site URL (No Trailing Slash)':
    'prefix': 'wpSiteUrl'
    'body': """
      site_url()
        """
Community
  • 1
  • 1
Omar Tariq
  • 7,536
  • 10
  • 38
  • 57