- fixed navmenus;

- added priority filter for modal windows in footer;
This commit is contained in:
nikitasinelnikov
2020-06-04 18:19:40 +03:00
parent d93dd00249
commit a41cad52e1
2 changed files with 11 additions and 2 deletions
+9 -1
View File
@@ -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 );
}