mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-17 21:53:43 +09:00
- fixed navmenus;
- added priority filter for modal windows in footer;
This commit is contained in:
@@ -21,7 +21,15 @@ if ( ! class_exists( 'um\core\Modal' ) ) {
|
||||
* Modal constructor.
|
||||
*/
|
||||
function __construct() {
|
||||
add_action( 'wp_footer', array(&$this, 'load_modal_content' ), 9 );
|
||||
add_action( 'wp_footer', array( &$this, 'load_modal_content' ), $this->get_priority() );
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @return int
|
||||
*/
|
||||
function get_priority() {
|
||||
return apply_filters( 'um_core_includes_modals_priority', 9 );
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user