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.