https://github.com/generoi/wp-text-replacements
https://github.com/generoi/wp-text-replacements
Last synced: 29 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/generoi/wp-text-replacements
- Owner: generoi
- Created: 2019-09-30T19:09:40.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2025-07-24T15:27:21.000Z (11 months ago)
- Last Synced: 2025-12-26T06:15:30.505Z (6 months ago)
- Language: PHP
- Size: 270 KB
- Stars: 1
- Watchers: 3
- 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 install
Run 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 watch
Bump versions
# Bump patch release
robo version:bump
# Bump minor release
robo version:bump --stage=minor
# Bump major release
robo version:bump --stage=major
Setup 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