Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/generoi/wp-text-replacements


https://github.com/generoi/wp-text-replacements

Last synced: 3 months ago
JSON representation

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