Download the PHP package valu/wp-graphql-polylang without Composer
On this page you can find all versions of the php package valu/wp-graphql-polylang. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download valu/wp-graphql-polylang
More information about valu/wp-graphql-polylang
Files in valu/wp-graphql-polylang
Package wp-graphql-polylang
Short Description Polylang bindings for wp-graphql
License GPL-2.0-or-later
Informations about the package wp-graphql-polylang
WPGraphQL Polylang Extension
Extend WPGraphQL schema with language data from the Polylang plugin.
Features
For posts and terms (custom ones too!)
- Adds
language
andtranslations
fields - Filter with a
language
where argument - Set the language on create and update mutations
- Show all translations in the api by default
- Polylang patches the WP Query to only list items with the current default language. This plugin reverts that for the GraphQL api
- ACF Options Pages support
Root queries
defaultLanguage
get the current default languagelanguages
list all configured languages
Menu
- Filter menu items by language
For details please refer to the generated docs in GraphiQL.
Example
Example showing all features
Requirements
- PHP 7.2 or later
- WPGraphQL 0.13.x or later
- Polylang 2.6.5 or later
- The free version is enough
- If you get the PRO version the pro features such as translated slugs will work too
Installation
If you use composer you can install it from Packagist
composer require valu/wp-graphql-polylang
Otherwise you can clone it from Github to your plugins using the stable branch
cd wp-content/plugins
git clone --branch stable https://github.com/valu-digital/wp-graphql-polylang.git
ACF Options Pages
In addition to WPGraphQL and Polylang plugins you'll need these plugins too
- Advanced Custom Fields Pro
- It's Pro only feature
- ACF Options For Polylang
- WPGraphQL for Advanced Custom Fields
- v0.3.2 or later is required
You can install the free plugins using Composer. You'll need to have the WordPress Packagist repository enabled.
When registering the Options Page you must pass in show_in_graphql
and
graphql_field_name
arguments.
Slack
You can find us from the WPGraphQL Slack on the #polylang
channel.
WPML
But I'm using WPML?!
There's rburgst/wp-graphql-wpml.
Or you might want to checkout migration docs
https://polylang.pro/how-to-switch-from-wpml-to-polylang/
Contributing
Checkout CONTRIBUTING.md