Add single settings.

This commit is contained in:
Hoang Huu
2019-09-25 13:44:59 +07:00
parent b2f43caeb1
commit 0eae5ced4d
8 changed files with 130 additions and 66 deletions

View File

@@ -2,8 +2,13 @@
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
global $post, $property;
if ( ! opalestate_get_option( 'enable_single_author_box' ) ) {
return;
}
$type = $property->get_author_type();
$data = get_userdata( $post->post_author );
$layout = '';