@@ -2053,6 +2053,11 @@ discard block |
||
2053 | 2053 | } |
2054 | 2054 | |
2055 | 2055 | //update meta |
2056 | + |
|
2057 | + /** |
|
2058 | + * @param string $term_id |
|
2059 | + * @param string $key |
|
2060 | + */ |
|
2056 | 2061 | public function update_tax_meta($term_id, $key, $value, $post_type = '') |
2057 | 2062 | { |
2058 | 2063 | |
@@ -2094,6 +2099,12 @@ discard block |
||
2094 | 2099 | |
2095 | 2100 | //get term meta field |
2096 | 2101 | if (!function_exists('geodir_get_tax_meta')) { |
2102 | + |
|
2103 | + /** |
|
2104 | + * @param string $key |
|
2105 | + * |
|
2106 | + * @return string |
|
2107 | + */ |
|
2097 | 2108 | function geodir_get_tax_meta($term_id, $key, $multi = false, $post_type = '') { |
2098 | 2109 | if (empty($post_type) && isset($_REQUEST['taxonomy'])) { |
2099 | 2110 | $taxObject = get_taxonomy($_REQUEST['taxonomy']); |
@@ -2145,6 +2156,10 @@ discard block |
||
2145 | 2156 | |
2146 | 2157 | //update meta |
2147 | 2158 | if (!function_exists('geodir_update_tax_meta')) { |
2159 | + |
|
2160 | + /** |
|
2161 | + * @param string $key |
|
2162 | + */ |
|
2148 | 2163 | function geodir_update_tax_meta($term_id, $key, $value, $post_type = '') { |
2149 | 2164 | if (empty($post_type) && isset($_REQUEST['taxonomy'])) { |
2150 | 2165 | $taxObject = get_taxonomy($_REQUEST['taxonomy']); |