Function Reference: get_gd_theme_compat_callback
Summary
Exports theme compatibility data for given theme.
Global Values
- $wpdb
- (object) (required) WordPress Database object.
- Default: None
Package
GeoDirectory
Change Log
Since: 1.0.0
Source File
get_gd_theme_compat_callback() is located in geodirectory-admin/admin_functions.php [Line: 1904]
Source Code
function get_gd_theme_compat_callback() { global $wpdb; $themes = get_option('gd_theme_compats'); if (isset($_POST['theme']) && isset($themes[$_POST['theme']]) && !empty($themes[$_POST['theme']])) { if (isset($_POST['export'])) { echo json_encode(array($_POST['theme'] => $themes[$_POST['theme']])); } else { echo json_encode($themes[$_POST['theme']]); } } die(); }