Skip to content
This repository has been archived by the owner on Jul 18, 2019. It is now read-only.

WordPress I18N Workshop Resources

Notifications You must be signed in to change notification settings

swissspidy/wp-i18n-workshop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

WordPress I18N Workshop

Workshop for introducing people to internationalization (I18N) and localization (L10N) in WordPress projects.

Accompanying slides can be found in slides.pdf.

Resources

WP-CLI Commands

Prerequisites:

Creating a new plugin

In your WordPress site's directory, run the following command:

wp scaffold plugin my-plugin --skip-tests --plugin_name="My Plugin"

Adding a new custom post type

This adds the necessary code to create a new "book" post type to the "my-plugin" plugin:

wp scaffold post-type book --plugin=my-plugin

Adding a new custom taxonomy

If you want books to have chapters you can add run the following command:

wp scaffold taxonomy chapter --post_types=book --plugin=my-plugin

Example Plugins

The "my-plugin" folder includes the plugin from the WP-CLI example that adds a book post type with the chapter taxonomy to your WordPress site.

The "gutenberg-i18n-block" contains one of the examples from https://github.com/swissspidy/gutenberg-i18n-block that adds an internationalized Gutenberg block to your WordPress site.

About

WordPress I18N Workshop Resources

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published