mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-13 19:56:27 +09:00
Merge pull request #1786 from ultimatemember/feature/ignore_hook
Added filter wp.hook `um_member_directory_popstate_ignore`.
This commit is contained in:
@@ -1670,6 +1670,11 @@ jQuery(document.body).ready( function() {
|
||||
|
||||
//history events when back/forward and change window.location.hash
|
||||
window.addEventListener( "popstate", function(e) {
|
||||
let ignorePopstate = wp.hooks.applyFilters( 'um_member_directory_popstate_ignore', false );
|
||||
if ( false !== ignorePopstate ) {
|
||||
return;
|
||||
}
|
||||
|
||||
jQuery( '.um-directory' ).each( function() {
|
||||
var directory = jQuery(this);
|
||||
var hash = um_members_get_hash( directory );
|
||||
|
||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user