mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
- remove wpautop filter at UM pages;
This commit is contained in:
@@ -2362,4 +2362,19 @@ function um_let_to_num( $v ) {
|
||||
}
|
||||
|
||||
return $ret;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Check if we are on UM page
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
function is_ultimatemember() {
|
||||
global $post;
|
||||
|
||||
if ( isset( $post->ID ) && in_array( $post->ID, UM()->config()->permalinks ) )
|
||||
return true;
|
||||
|
||||
return false;
|
||||
}
|
||||
Reference in New Issue
Block a user