@@ 2186-2197 (lines=12) @@ | ||
2183 | * |
|
2184 | * @return mixed |
|
2185 | */ |
|
2186 | public function get_post_meta () { |
|
2187 | $args = func_get_args(); |
|
2188 | ||
2189 | array_unshift( $args, 'post_type' ); |
|
2190 | ||
2191 | $_null = apply_filters( 'pods_meta_get_post_meta', null, $args ); |
|
2192 | ||
2193 | if ( null !== $_null ) |
|
2194 | return $_null; |
|
2195 | ||
2196 | return call_user_func_array( array( $this, 'get_meta' ), $args ); |
|
2197 | } |
|
2198 | ||
2199 | /** |
|
2200 | * @return mixed |
|
@@ 2202-2213 (lines=12) @@ | ||
2199 | /** |
|
2200 | * @return mixed |
|
2201 | */ |
|
2202 | public function get_user_meta () { |
|
2203 | $args = func_get_args(); |
|
2204 | ||
2205 | array_unshift( $args, 'user' ); |
|
2206 | ||
2207 | $_null = apply_filters( 'pods_meta_get_user_meta', null, $args ); |
|
2208 | ||
2209 | if ( null !== $_null ) |
|
2210 | return $_null; |
|
2211 | ||
2212 | return call_user_func_array( array( $this, 'get_meta' ), $args ); |
|
2213 | } |
|
2214 | ||
2215 | /** |
|
2216 | * @return mixed |
|
@@ 2218-2229 (lines=12) @@ | ||
2215 | /** |
|
2216 | * @return mixed |
|
2217 | */ |
|
2218 | public function get_comment_meta () { |
|
2219 | $args = func_get_args(); |
|
2220 | ||
2221 | array_unshift( $args, 'comment' ); |
|
2222 | ||
2223 | $_null = apply_filters( 'pods_meta_get_comment_meta', null, $args ); |
|
2224 | ||
2225 | if ( null !== $_null ) |
|
2226 | return $_null; |
|
2227 | ||
2228 | return call_user_func_array( array( $this, 'get_meta' ), $args ); |
|
2229 | } |
|
2230 | ||
2231 | /** |
|
2232 | * @return mixed |
|
@@ 2234-2245 (lines=12) @@ | ||
2231 | /** |
|
2232 | * @return mixed |
|
2233 | */ |
|
2234 | public function get_term_meta () { |
|
2235 | $args = func_get_args(); |
|
2236 | ||
2237 | array_unshift( $args, 'term' ); |
|
2238 | ||
2239 | $_null = apply_filters( 'pods_meta_get_term_meta', null, $args ); |
|
2240 | ||
2241 | if ( null !== $_null ) |
|
2242 | return $_null; |
|
2243 | ||
2244 | return call_user_func_array( array( $this, 'get_meta' ), $args ); |
|
2245 | } |
|
2246 | ||
2247 | /** |
|
2248 | * All *_*_meta filter handler aliases |
|
@@ 2252-2263 (lines=12) @@ | ||
2249 | * |
|
2250 | * @return mixed |
|
2251 | */ |
|
2252 | public function get_option () { |
|
2253 | $args = func_get_args(); |
|
2254 | ||
2255 | array_unshift( $args, 'settings' ); |
|
2256 | ||
2257 | $_null = apply_filters( 'pods_meta_get_option', null, $args ); |
|
2258 | ||
2259 | if ( null !== $_null ) |
|
2260 | return $_null; |
|
2261 | ||
2262 | return call_user_func_array( array( $this, 'get_meta' ), $args ); |
|
2263 | } |
|
2264 | ||
2265 | /** |
|
2266 | * @return mixed |
|
@@ 2268-2279 (lines=12) @@ | ||
2265 | /** |
|
2266 | * @return mixed |
|
2267 | */ |
|
2268 | public function add_post_meta () { |
|
2269 | $args = func_get_args(); |
|
2270 | ||
2271 | array_unshift( $args, 'post_type' ); |
|
2272 | ||
2273 | $_null = apply_filters( 'pods_meta_add_post_meta', null, $args ); |
|
2274 | ||
2275 | if ( null !== $_null ) |
|
2276 | return $_null; |
|
2277 | ||
2278 | return call_user_func_array( array( $this, 'add_meta' ), $args ); |
|
2279 | } |
|
2280 | ||
2281 | /** |
|
2282 | * @return mixed |
|
@@ 2284-2295 (lines=12) @@ | ||
2281 | /** |
|
2282 | * @return mixed |
|
2283 | */ |
|
2284 | public function add_user_meta () { |
|
2285 | $args = func_get_args(); |
|
2286 | ||
2287 | array_unshift( $args, 'user' ); |
|
2288 | ||
2289 | $_null = apply_filters( 'pods_meta_add_user_meta', null, $args ); |
|
2290 | ||
2291 | if ( null !== $_null ) |
|
2292 | return $_null; |
|
2293 | ||
2294 | return call_user_func_array( array( $this, 'add_meta' ), $args ); |
|
2295 | } |
|
2296 | ||
2297 | /** |
|
2298 | * @return mixed |
|
@@ 2300-2311 (lines=12) @@ | ||
2297 | /** |
|
2298 | * @return mixed |
|
2299 | */ |
|
2300 | public function add_comment_meta () { |
|
2301 | $args = func_get_args(); |
|
2302 | ||
2303 | array_unshift( $args, 'comment' ); |
|
2304 | ||
2305 | $_null = apply_filters( 'pods_meta_add_comment_meta', null, $args ); |
|
2306 | ||
2307 | if ( null !== $_null ) |
|
2308 | return $_null; |
|
2309 | ||
2310 | return call_user_func_array( array( $this, 'add_meta' ), $args ); |
|
2311 | } |
|
2312 | ||
2313 | /** |
|
2314 | * @return mixed |
|
@@ 2316-2327 (lines=12) @@ | ||
2313 | /** |
|
2314 | * @return mixed |
|
2315 | */ |
|
2316 | public function add_term_meta () { |
|
2317 | $args = func_get_args(); |
|
2318 | ||
2319 | array_unshift( $args, 'term' ); |
|
2320 | ||
2321 | $_null = apply_filters( 'pods_meta_add_term_meta', null, $args ); |
|
2322 | ||
2323 | if ( null !== $_null ) |
|
2324 | return $_null; |
|
2325 | ||
2326 | return call_user_func_array( array( $this, 'add_meta' ), $args ); |
|
2327 | } |
|
2328 | ||
2329 | /** |
|
2330 | * @return mixed |
|
@@ 2332-2343 (lines=12) @@ | ||
2329 | /** |
|
2330 | * @return mixed |
|
2331 | */ |
|
2332 | public function add_option () { |
|
2333 | $args = func_get_args(); |
|
2334 | ||
2335 | array_unshift( $args, 'settings' ); |
|
2336 | ||
2337 | $_null = apply_filters( 'pods_meta_add_option', null, $args ); |
|
2338 | ||
2339 | if ( null !== $_null ) |
|
2340 | return $_null; |
|
2341 | ||
2342 | return call_user_func_array( array( $this, 'add_meta' ), $args ); |
|
2343 | } |
|
2344 | ||
2345 | /** |
|
2346 | * @return mixed |
|
@@ 2348-2359 (lines=12) @@ | ||
2345 | /** |
|
2346 | * @return mixed |
|
2347 | */ |
|
2348 | public function update_post_meta () { |
|
2349 | $args = func_get_args(); |
|
2350 | ||
2351 | array_unshift( $args, 'post_type' ); |
|
2352 | ||
2353 | $_null = apply_filters( 'pods_meta_update_post_meta', null, $args ); |
|
2354 | ||
2355 | if ( null !== $_null ) |
|
2356 | return $_null; |
|
2357 | ||
2358 | return call_user_func_array( array( $this, 'update_meta' ), $args ); |
|
2359 | } |
|
2360 | ||
2361 | /** |
|
2362 | * @return mixed |
|
@@ 2364-2375 (lines=12) @@ | ||
2361 | /** |
|
2362 | * @return mixed |
|
2363 | */ |
|
2364 | public function update_user_meta () { |
|
2365 | $args = func_get_args(); |
|
2366 | ||
2367 | array_unshift( $args, 'user' ); |
|
2368 | ||
2369 | $_null = apply_filters( 'pods_meta_update_user_meta', null, $args ); |
|
2370 | ||
2371 | if ( null !== $_null ) |
|
2372 | return $_null; |
|
2373 | ||
2374 | return call_user_func_array( array( $this, 'update_meta' ), $args ); |
|
2375 | } |
|
2376 | ||
2377 | /** |
|
2378 | * @return mixed |
|
@@ 2380-2391 (lines=12) @@ | ||
2377 | /** |
|
2378 | * @return mixed |
|
2379 | */ |
|
2380 | public function update_comment_meta () { |
|
2381 | $args = func_get_args(); |
|
2382 | ||
2383 | array_unshift( $args, 'comment' ); |
|
2384 | ||
2385 | $_null = apply_filters( 'pods_meta_update_comment_meta', null, $args ); |
|
2386 | ||
2387 | if ( null !== $_null ) |
|
2388 | return $_null; |
|
2389 | ||
2390 | return call_user_func_array( array( $this, 'update_meta' ), $args ); |
|
2391 | } |
|
2392 | ||
2393 | /** |
|
2394 | * @return mixed |
|
@@ 2396-2407 (lines=12) @@ | ||
2393 | /** |
|
2394 | * @return mixed |
|
2395 | */ |
|
2396 | public function update_term_meta () { |
|
2397 | $args = func_get_args(); |
|
2398 | ||
2399 | array_unshift( $args, 'term' ); |
|
2400 | ||
2401 | $_null = apply_filters( 'pods_meta_update_term_meta', null, $args ); |
|
2402 | ||
2403 | if ( null !== $_null ) |
|
2404 | return $_null; |
|
2405 | ||
2406 | return call_user_func_array( array( $this, 'update_meta' ), $args ); |
|
2407 | } |
|
2408 | ||
2409 | /** |
|
2410 | * @return mixed |
|
@@ 2412-2423 (lines=12) @@ | ||
2409 | /** |
|
2410 | * @return mixed |
|
2411 | */ |
|
2412 | public function update_option () { |
|
2413 | $args = func_get_args(); |
|
2414 | ||
2415 | array_unshift( $args, 'settings' ); |
|
2416 | ||
2417 | $_null = apply_filters( 'pods_meta_update_option', null, $args ); |
|
2418 | ||
2419 | if ( null !== $_null ) |
|
2420 | return $_null; |
|
2421 | ||
2422 | return call_user_func_array( array( $this, 'update_meta' ), $args ); |
|
2423 | } |
|
2424 | ||
2425 | /** |
|
2426 | * @return mixed |
|
@@ 2428-2439 (lines=12) @@ | ||
2425 | /** |
|
2426 | * @return mixed |
|
2427 | */ |
|
2428 | public function delete_post_meta () { |
|
2429 | $args = func_get_args(); |
|
2430 | ||
2431 | array_unshift( $args, 'post_type' ); |
|
2432 | ||
2433 | $_null = apply_filters( 'pods_meta_delete_post_meta', null, $args ); |
|
2434 | ||
2435 | if ( null !== $_null ) |
|
2436 | return $_null; |
|
2437 | ||
2438 | return call_user_func_array( array( $this, 'delete_meta' ), $args ); |
|
2439 | } |
|
2440 | ||
2441 | /** |
|
2442 | * @return mixed |
|
@@ 2444-2455 (lines=12) @@ | ||
2441 | /** |
|
2442 | * @return mixed |
|
2443 | */ |
|
2444 | public function delete_user_meta () { |
|
2445 | $args = func_get_args(); |
|
2446 | ||
2447 | array_unshift( $args, 'user' ); |
|
2448 | ||
2449 | $_null = apply_filters( 'pods_meta_delete_user_meta', null, $args ); |
|
2450 | ||
2451 | if ( null !== $_null ) |
|
2452 | return $_null; |
|
2453 | ||
2454 | return call_user_func_array( array( $this, 'delete_meta' ), $args ); |
|
2455 | } |
|
2456 | ||
2457 | /** |
|
2458 | * @return mixed |
|
@@ 2460-2471 (lines=12) @@ | ||
2457 | /** |
|
2458 | * @return mixed |
|
2459 | */ |
|
2460 | public function delete_comment_meta () { |
|
2461 | $args = func_get_args(); |
|
2462 | ||
2463 | array_unshift( $args, 'comment' ); |
|
2464 | ||
2465 | $_null = apply_filters( 'pods_meta_delete_comment_meta', null, $args ); |
|
2466 | ||
2467 | if ( null !== $_null ) |
|
2468 | return $_null; |
|
2469 | ||
2470 | return call_user_func_array( array( $this, 'delete_meta' ), $args ); |
|
2471 | } |
|
2472 | ||
2473 | /** |
|
2474 | * @return mixed |
|
@@ 2476-2487 (lines=12) @@ | ||
2473 | /** |
|
2474 | * @return mixed |
|
2475 | */ |
|
2476 | public function delete_term_meta () { |
|
2477 | $args = func_get_args(); |
|
2478 | ||
2479 | array_unshift( $args, 'term' ); |
|
2480 | ||
2481 | $_null = apply_filters( 'pods_meta_delete_term_meta', null, $args ); |
|
2482 | ||
2483 | if ( null !== $_null ) |
|
2484 | return $_null; |
|
2485 | ||
2486 | return call_user_func_array( array( $this, 'delete_meta' ), $args ); |
|
2487 | } |
|
2488 | ||
2489 | /** |
|
2490 | * @return mixed |
|
@@ 2492-2503 (lines=12) @@ | ||
2489 | /** |
|
2490 | * @return mixed |
|
2491 | */ |
|
2492 | public function delete_option () { |
|
2493 | $args = func_get_args(); |
|
2494 | ||
2495 | array_unshift( $args, 'settings' ); |
|
2496 | ||
2497 | $_null = apply_filters( 'pods_meta_delete_option', null, $args ); |
|
2498 | ||
2499 | if ( null !== $_null ) |
|
2500 | return $_null; |
|
2501 | ||
2502 | return call_user_func_array( array( $this, 'delete_meta' ), $args ); |
|
2503 | } |
|
2504 | ||
2505 | /* |
|
2506 | * The real meta functions |