mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
- fixed save member directory metadata;
This commit is contained in:
@@ -41,6 +41,8 @@ if ( ! class_exists( 'um\admin\core\Admin_Metabox' ) ) {
|
||||
|
||||
add_filter( 'um_builtin_validation_types_continue_loop', array( &$this, 'validation_types_continue_loop' ), 1, 4 );
|
||||
add_filter( 'um_restrict_content_hide_metabox', array( &$this, 'hide_metabox_restrict_content_shop' ), 10, 1 );
|
||||
|
||||
add_filter( 'um_member_directory_meta_value_before_save', array( UM()->member_directory(), 'before_save_data' ), 10, 3 );
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -92,7 +92,7 @@ if ( ! class_exists( 'um\core\Member_Directory' ) ) {
|
||||
function __construct() {
|
||||
add_filter( 'plugins_loaded', array( &$this, 'init_variables' ), 99999 );
|
||||
add_filter( 'init', array( &$this, 'init_filter_types' ), 2 );
|
||||
add_filter( 'um_member_directory_meta_value_before_save', array( &$this, 'before_save_data' ), 10, 3 );
|
||||
//add_filter( 'um_member_directory_meta_value_before_save', array( &$this, 'before_save_data' ), 10, 3 );
|
||||
|
||||
add_action( 'template_redirect', array( &$this, 'access_members' ), 555 );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user