Skip to content
This is a simple add-on for the MultilingualPress plugin to synchronize the post metadata of the Yoast SEO plugin between translated posts.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin Add code for MultilingualPress 3 into master branch Apr 17, 2019
languages Add code for MultilingualPress 3 into master branch Apr 17, 2019
src
tests Add code for MultilingualPress 3 into master branch Apr 17, 2019
.editorconfig Add code for MultilingualPress 3 into master branch Apr 17, 2019
.eslintignore
.eslintrc
.gitignore Add code for MultilingualPress 3 into master branch Apr 17, 2019
LICENSE Add code for MultilingualPress 3 into master branch Apr 17, 2019
PhpStorm.xml Add code for MultilingualPress 3 into master branch Apr 17, 2019
README.md
RoboFile.php Add code for MultilingualPress 3 into master branch Apr 17, 2019
composer.json Add code for MultilingualPress 3 into master branch Apr 17, 2019
docker-compose.yml
gulp.js Add code for MultilingualPress 3 into master branch Apr 17, 2019
multilingualpress-yoast-seo-sync.php
package-lock.json
package.json Update package.json description Apr 18, 2019
phpcs.xml.dist Add code for MultilingualPress 3 into master branch Apr 17, 2019
phpunit.xml.dist Add code for MultilingualPress 3 into master branch Apr 17, 2019
uninstall.php
yarn.lock Add code for MultilingualPress 3 into master branch Apr 17, 2019

README.md

MultilingualPress 3 Yoast SEO Sync

Synchronize the post metadata of the Yoast SEO plugin between translated posts.

This branch (master branch) contains the code for MultilingualPress 3, for MultilingualPress 2 there is version-1-mlp2 branch, also here is the .zip for MultilingualPress 2.

Development

$ composer install
$ npm install

Testing

Unit testing

$ vendor/bin/phpunit

Acceptance testing

Add multilingualpress plugin to bin folder and follow instructions in tests/codeception/README.md

Code Style

MultilingualPress follow Inpsyde coding standard which are enforced via php_codesniffer.

A phpcs.xml.dist is available on the repository.

The repository also contains a PhpStorm.xml for code styles settings to be imported in PhpStorm IDE.

The Inpsyde coding standard repository contains information on how to setup PhpStorm to integrate with phpcs.

Robo Commands

The plugin ships with a set of Robo commands to run different development tasks, the most relevant are:

  • $ ./vendor/bin/robo build:assets to "build" both scripts and styles
  • $ ./vendor/bin/robo build:scripts to "build" only scripts
  • $ ./vendor/bin/robo build:styles to "build" only styles
  • $ ./vendor/bin/robo makepot to create the pot file within languages directory
  • $ ./vendor/bin/robo update:potandpo to create the pot file within languages directory and update po files. This will include all of the new strings in the .po files.
  • $ ./vendor/bin/robo tests to run both PHPUnit tests and php_codesniffer checks
  • $ ./vendor/bin/robo build to run all the above.
  • $ ./vendor/bin/robo build {version-number} to run all the above and, on success, create a zip file ready to be published. E.g. $ ./vendor/bin/robo build 1.0.0 will lint and compile assets, run unit tests and code styles check and if all of those are successful will create a multilingualpress-3-0-0.zip file in the root of the plugin. This file is git-ignored, but is what will be released to users.
  • $ ./vendor/bin/robo build {version-number} --git will do the same as before and will also create a Git tag with the given version number. Use carefully.
You can’t perform that action at this time.