Update Dashboard classes.

This commit is contained in:
Hoang Huu
2019-11-07 10:07:08 +07:00
parent 943d5e20e4
commit 66344b2f34
3 changed files with 6 additions and 4 deletions

View File

@@ -195,7 +195,7 @@ abstract class Opalestate_Base_API {
$endpoint = explode( '/', $route );
$endpoint = end( $endpoint );
if ( in_array( $endpoint, [ 'properties', 'agencies', 'agents', 'search-form' ] ) ) {
if ( in_array( $endpoint, [ 'properties', 'agencies', 'agents', 'search-form', 'search' ] ) ) {
return true;
}