We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
gpi-enable-wpml-for-custom-messages.php
1 parent 7b4a0eb commit 51d4d95Copy full SHA for 51d4d95
gp-inventory/gpi-enable-wpml-for-custom-messages.php
@@ -2,6 +2,15 @@
2
/**
3
* Gravity Perks // Inventory // WPML Support for Custom Inventory Messages
4
* https://gravitywiz.com/documentation/gravity-forms-inventory/
5
+ *
6
+ * Instructions
7
8
+ * 1. Install the snippet.
9
+ * https://gravitywiz.com/documentation/how-do-i-install-a-snippet/
10
11
+ * 2. View the form on the frontend or via the previewer. Viewing the form registers the custom messages with WPML.
12
13
+ * 3. Navigate to WPML > String Translation in wp-admin, where the strings will be available to translate.
14
*/
15
add_filter( 'gform_pre_render', function( $form ) {
16
if ( ! function_exists( 'icl_register_string' ) || ! function_exists( 'gp_inventory' ) ) {
0 commit comments