Skip to content

Add custom snippets storage path feature#43

Open
digisavvy wants to merge 1 commit intoWPManageNinja:masterfrom
DigiSavvy-Inc:claude/custom-snippets-path-VxlFb
Open

Add custom snippets storage path feature#43
digisavvy wants to merge 1 commit intoWPManageNinja:masterfrom
DigiSavvy-Inc:claude/custom-snippets-path-VxlFb

Conversation

@digisavvy
Copy link
Copy Markdown

Allow users to customize where snippets are stored by:

  • Defining FLUENT_SNIPPETS_STORAGE_DIR constant in wp-config.php
  • Using the 'fluent_snippets/storage_dir' filter

This is useful for hosts that lock down the file system and only allow writes to specific directories like wp-content/uploads. Gridpane does this for Git immutable repos and Pantheon does this as well. A user could use symlinks but those are too brittle can be overwritten easily.

Also adds:

  • FLUENT_SNIPPETS_STORAGE_URL constant for custom URL
  • 'fluent_snippets/storage_url' filter for URL customization
  • Automatic URL detection for paths within uploads or wp-content

Allow users to customize where snippets are stored by:
- Defining FLUENT_SNIPPETS_STORAGE_DIR constant in wp-config.php
- Using the 'fluent_snippets/storage_dir' filter

This is useful for hosts that lock down the file system and only
allow writes to specific directories like wp-content/uploads.

Also adds:
- FLUENT_SNIPPETS_STORAGE_URL constant for custom URL
- 'fluent_snippets/storage_url' filter for URL customization
- Automatic URL detection for paths within uploads or wp-content
@digisavvy
Copy link
Copy Markdown
Author

Hey there, just wanted to check in on this PR and see what you thought. =)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants