PluginProbe
WPCasa – Real Estate for WordPress / trunk
WPCasa – Real Estate for WordPress vtrunk
1.5.5 1.5.4 1.5.3 1.5.2 1.5.1 1.5.1.1 trunk 1.2.0 1.2.1 1.2.10 1.2.10.1 1.2.11 1.2.12 1.2.13 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 1.2.9.1 1.2.9.2 1.3.0 All 31 releases
wpcasa / functions / wpsight-admin.php

wpsight-admin.php in WPCasa – Real Estate for WordPress trunk, at functions/wpsight-admin.php

149 lines 2.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * WPSight admin functions
4 *
5 * @package WPSight \ Functions
6 */
7
8 // Exit if accessed directly.
9 if ( ! defined( 'ABSPATH' ) ) {
10 exit;
11 }
12
13 /**
14 * wpsight_options()
15 *
16 * Merge option tabs and
17 * return WPSight_Admin::options()
18 *
19 * @since 1.0.0
20 */
21
22 // Make function pluggable/overwritable
23 if ( ! function_exists( 'wpsight_options' ) ) {
24
25 function wpsight_options() {
26 return WPSight_Admin::options();
27 }
28
29 }
30
31 /**
32 * wpsight_options_listings()
33 *
34 * Create theme options array
35 * Listings options
36 *
37 * @since 1.0.0
38 */
39
40 // Make function pluggable/overwritable
41 if ( ! function_exists( 'wpsight_options_listings' ) ) {
42
43 function wpsight_options_listings() {
44 return WPSight_Admin::options_listings();
45 }
46
47 }
48
49 /**
50 * wpsight_licenses()
51 *
52 * Create licneses array
53 *
54 * @since 1.0.0
55 */
56
57 // Make function pluggable/overwritable
58 if ( ! function_exists( 'wpsight_licenses' ) ) {
59
60 function wpsight_licenses() {
61 return WPSight_Admin::licenses();
62 }
63
64 }
65
66 /**
67 * wpsight_check_license()
68 *
69 * Check specific license
70 *
71 * @since 1.0.0
72 */
73
74 // Make function pluggable/overwritable
75 //if ( ! function_exists( 'wpsight_check_license' ) ) {
76 //
77 // function wpsight_check_license( $id = '', $item = '' ) {
78 // return WPSight_Admin::check_license( $id, $item );
79 // }
80 //
81 //}
82
83 /**
84 * wpsight_activate_license()
85 *
86 * Update specific license
87 *
88 * @since 1.0.0
89 */
90
91 // Make function pluggable/overwritable
92 //if ( ! function_exists( 'wpsight_activate_license' ) ) {
93 //
94 // function wpsight_activate_license( $id = '', $item = '' ) {
95 // return WPSight_Admin::activate_license( $id, $item );
96 // }
97 //
98 //}
99
100 /**
101 * wpsight_deactivate_license()
102 *
103 * Update specific license
104 *
105 * @since 1.0.0
106 */
107
108 // Make function pluggable/overwritable
109 //if ( ! function_exists( 'wpsight_deactivate_license' ) ) {
110 //
111 // function wpsight_deactivate_license( $id = '', $item = '' ) {
112 // return WPSight_Admin::deactivate_license( $id, $item );
113 // }
114 //
115 //}
116
117 /**
118 * wpsight_is_premium()
119 *
120 * Check if premium is active.
121 *
122 * @since 1.2.0
123 */
124
125 // Make function pluggable/overwritable
126 if ( ! function_exists( 'wpsight_is_premium' ) ) {
127
128 function wpsight_is_premium() {
129 return WPSight_Admin_Licenses::is_premium();
130 }
131
132 }
133
134 /**
135 * wpsight_admin_get_recommendations()
136 *
137 * return recommendations
138 *
139 * @since 1.2.0
140 */
141
142 // Make function pluggable/overwritable
143 if ( ! function_exists( 'wpsight_admin_get_recommendations' ) ) {
144
145 function wpsight_admin_get_recommendations() {
146 return WPSight_Admin::recommendations();
147 }
148 }
149