Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/generoi/wp-text-replacements
https://github.com/generoi/wp-text-replacements
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/generoi/wp-text-replacements
- Owner: generoi
- Created: 2019-09-30T19:09:40.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-07-08T00:09:26.000Z (over 1 year ago)
- Last Synced: 2024-04-16T22:30:13.254Z (7 months ago)
- Language: PHP
- Size: 269 KB
- Stars: 1
- Watchers: 5
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# text-replacements
> Replace text
## Requirements
_Does the plugin have any requirements?_
## Features
_A list of features_.
## API
_Any hooks exposed?_
```php
// Load recaptcha script.
add_filter('gravityforms-timber/options', function ($options) {
$options['recaptcha'] = true;
});
```## Development
Install dependencies
composer install
npm installRun the tests
npm run test
Build assets
# Minified assets which are to be committed to git
npm run production# Development assets while developing the plugin
npm run dev# Watch for changes and re-compile while developing the plugin
npm run watchBump versions
# Bump patch release
robo version:bump# Bump minor release
robo version:bump --stage=minor# Bump major release
robo version:bump --stage=majorSetup new plugin
robo rename
### Translations
Rebuild POT files (after this, copy to each language as `languages/text-replacements-.po` and translate it)
npm run lang:pot
Compile MO files (requires msgfmt which is available with `brew install gettext && brew link gettext --force`)
npm run lang:mo
Or run all of these with:
npm run lang