Skip to content

Commit 1229b6d

Browse files
authored
gpi-enable-wpml-for-custom-messages.php: Added usage instructions.
1 parent 3ca6389 commit 1229b6d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

gp-inventory/gpi-enable-wpml-for-custom-messages.php

+9
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,15 @@
22
/**
33
* Gravity Perks // Inventory // WPML Support for Custom Inventory Messages
44
* 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.
514
*/
615
add_filter( 'gform_pre_render', function( $form ) {
716
if ( ! function_exists( 'icl_register_string' ) || ! function_exists( 'gp_inventory' ) ) {

0 commit comments

Comments
 (0)