mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-11 18:56:10 +09:00
- added code snippet for WPML integration with Forms translations;
- removed some old commented code;
This commit is contained in:
@@ -481,8 +481,11 @@ if ( ! class_exists( 'um\core\Form' ) ) {
|
||||
$global_role = $um_global_role; // Form Global settings
|
||||
}
|
||||
|
||||
|
||||
$mode = $this->form_type( $post_id );
|
||||
|
||||
/**
|
||||
* @todo WPML integration to get role from original if it's empty
|
||||
*/
|
||||
$use_custom = get_post_meta( $post_id, "_um_{$mode}_use_custom_settings", true );
|
||||
if ( $use_custom ) { // Custom Form settings
|
||||
$role = get_post_meta( $post_id, "_um_{$mode}_role", true );
|
||||
|
||||
Reference in New Issue
Block a user