mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-19 14:43:49 +09:00
Revert to stable version
This commit is contained in:
@@ -120,6 +120,24 @@
|
||||
return false;
|
||||
}
|
||||
|
||||
/***
|
||||
*** @Is core URL
|
||||
***/
|
||||
function um_is_core_uri() {
|
||||
global $ultimatemember;
|
||||
$array = $ultimatemember->permalinks->core;
|
||||
$current_url = trailingslashit( $ultimatemember->permalinks->get_current_url(true) );
|
||||
|
||||
if ( !isset( $array ) || !is_array( $array ) ) return false;
|
||||
|
||||
foreach( $array as $k => $id ) {
|
||||
$page_url = trailingslashit( get_permalink( $id ) );
|
||||
if ( strstr( $current_url, $page_url ) )
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/***
|
||||
*** @Check value of queried search in text input
|
||||
***/
|
||||
|
||||
Reference in New Issue
Block a user