Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/generoi/wp-gutenberg-instafeed


https://github.com/generoi/wp-gutenberg-instafeed

Last synced: about 2 months ago
JSON representation

Awesome Lists containing this project

README

        

# wp-gutenberg-instafeed

> An Instagram feed block for WordPress Gutenberg

## API

```php
add_filter('wp-genero-gutenberg/instafeed/cachetime', function ($time) {
return WP_DEBUG ? 0 : $time;
});
```

## 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

# Watch for changes and re-compile while developing the plugin
npm run watch

## Translations

During compilation a `languages/javascript.pot` containing the translatable strings from JavaScript will be created. This needs to be converted to PHP which is done automatically in the next step.

Rebuild POT files (after this, copy to each language as languages/wp-gutenberg-backgrounds-.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