@@ 2272-2283 (lines=12) @@ | ||
2269 | * |
|
2270 | * @return mixed |
|
2271 | */ |
|
2272 | public function get_post_meta () { |
|
2273 | $args = func_get_args(); |
|
2274 | ||
2275 | array_unshift( $args, 'post_type' ); |
|
2276 | ||
2277 | $_null = apply_filters( 'pods_meta_get_post_meta', null, $args ); |
|
2278 | ||
2279 | if ( null !== $_null ) |
|
2280 | return $_null; |
|
2281 | ||
2282 | return call_user_func_array( array( $this, 'get_meta' ), $args ); |
|
2283 | } |
|
2284 | ||
2285 | /** |
|
2286 | * @return mixed |
|
@@ 2288-2299 (lines=12) @@ | ||
2285 | /** |
|
2286 | * @return mixed |
|
2287 | */ |
|
2288 | public function get_user_meta () { |
|
2289 | $args = func_get_args(); |
|
2290 | ||
2291 | array_unshift( $args, 'user' ); |
|
2292 | ||
2293 | $_null = apply_filters( 'pods_meta_get_user_meta', null, $args ); |
|
2294 | ||
2295 | if ( null !== $_null ) |
|
2296 | return $_null; |
|
2297 | ||
2298 | return call_user_func_array( array( $this, 'get_meta' ), $args ); |
|
2299 | } |
|
2300 | ||
2301 | /** |
|
2302 | * @return mixed |
|
@@ 2304-2315 (lines=12) @@ | ||
2301 | /** |
|
2302 | * @return mixed |
|
2303 | */ |
|
2304 | public function get_comment_meta () { |
|
2305 | $args = func_get_args(); |
|
2306 | ||
2307 | array_unshift( $args, 'comment' ); |
|
2308 | ||
2309 | $_null = apply_filters( 'pods_meta_get_comment_meta', null, $args ); |
|
2310 | ||
2311 | if ( null !== $_null ) |
|
2312 | return $_null; |
|
2313 | ||
2314 | return call_user_func_array( array( $this, 'get_meta' ), $args ); |
|
2315 | } |
|
2316 | ||
2317 | /** |
|
2318 | * @return mixed |
|
@@ 2320-2331 (lines=12) @@ | ||
2317 | /** |
|
2318 | * @return mixed |
|
2319 | */ |
|
2320 | public function get_term_meta () { |
|
2321 | $args = func_get_args(); |
|
2322 | ||
2323 | array_unshift( $args, 'term' ); |
|
2324 | ||
2325 | $_null = apply_filters( 'pods_meta_get_term_meta', null, $args ); |
|
2326 | ||
2327 | if ( null !== $_null ) |
|
2328 | return $_null; |
|
2329 | ||
2330 | return call_user_func_array( array( $this, 'get_meta' ), $args ); |
|
2331 | } |
|
2332 | ||
2333 | /** |
|
2334 | * All *_*_meta filter handler aliases |
|
@@ 2338-2349 (lines=12) @@ | ||
2335 | * |
|
2336 | * @return mixed |
|
2337 | */ |
|
2338 | public function get_option () { |
|
2339 | $args = func_get_args(); |
|
2340 | ||
2341 | array_unshift( $args, 'settings' ); |
|
2342 | ||
2343 | $_null = apply_filters( 'pods_meta_get_option', null, $args ); |
|
2344 | ||
2345 | if ( null !== $_null ) |
|
2346 | return $_null; |
|
2347 | ||
2348 | return call_user_func_array( array( $this, 'get_meta' ), $args ); |
|
2349 | } |
|
2350 | ||
2351 | /** |
|
2352 | * @return mixed |
|
@@ 2354-2365 (lines=12) @@ | ||
2351 | /** |
|
2352 | * @return mixed |
|
2353 | */ |
|
2354 | public function add_post_meta () { |
|
2355 | $args = func_get_args(); |
|
2356 | ||
2357 | array_unshift( $args, 'post_type' ); |
|
2358 | ||
2359 | $_null = apply_filters( 'pods_meta_add_post_meta', null, $args ); |
|
2360 | ||
2361 | if ( null !== $_null ) |
|
2362 | return $_null; |
|
2363 | ||
2364 | return call_user_func_array( array( $this, 'add_meta' ), $args ); |
|
2365 | } |
|
2366 | ||
2367 | /** |
|
2368 | * @return mixed |
|
@@ 2370-2381 (lines=12) @@ | ||
2367 | /** |
|
2368 | * @return mixed |
|
2369 | */ |
|
2370 | public function add_user_meta () { |
|
2371 | $args = func_get_args(); |
|
2372 | ||
2373 | array_unshift( $args, 'user' ); |
|
2374 | ||
2375 | $_null = apply_filters( 'pods_meta_add_user_meta', null, $args ); |
|
2376 | ||
2377 | if ( null !== $_null ) |
|
2378 | return $_null; |
|
2379 | ||
2380 | return call_user_func_array( array( $this, 'add_meta' ), $args ); |
|
2381 | } |
|
2382 | ||
2383 | /** |
|
2384 | * @return mixed |
|
@@ 2386-2397 (lines=12) @@ | ||
2383 | /** |
|
2384 | * @return mixed |
|
2385 | */ |
|
2386 | public function add_comment_meta () { |
|
2387 | $args = func_get_args(); |
|
2388 | ||
2389 | array_unshift( $args, 'comment' ); |
|
2390 | ||
2391 | $_null = apply_filters( 'pods_meta_add_comment_meta', null, $args ); |
|
2392 | ||
2393 | if ( null !== $_null ) |
|
2394 | return $_null; |
|
2395 | ||
2396 | return call_user_func_array( array( $this, 'add_meta' ), $args ); |
|
2397 | } |
|
2398 | ||
2399 | /** |
|
2400 | * @return mixed |
|
@@ 2402-2413 (lines=12) @@ | ||
2399 | /** |
|
2400 | * @return mixed |
|
2401 | */ |
|
2402 | public function add_term_meta () { |
|
2403 | $args = func_get_args(); |
|
2404 | ||
2405 | array_unshift( $args, 'term' ); |
|
2406 | ||
2407 | $_null = apply_filters( 'pods_meta_add_term_meta', null, $args ); |
|
2408 | ||
2409 | if ( null !== $_null ) |
|
2410 | return $_null; |
|
2411 | ||
2412 | return call_user_func_array( array( $this, 'add_meta' ), $args ); |
|
2413 | } |
|
2414 | ||
2415 | /** |
|
2416 | * @return mixed |
|
@@ 2418-2429 (lines=12) @@ | ||
2415 | /** |
|
2416 | * @return mixed |
|
2417 | */ |
|
2418 | public function add_option () { |
|
2419 | $args = func_get_args(); |
|
2420 | ||
2421 | array_unshift( $args, 'settings' ); |
|
2422 | ||
2423 | $_null = apply_filters( 'pods_meta_add_option', null, $args ); |
|
2424 | ||
2425 | if ( null !== $_null ) |
|
2426 | return $_null; |
|
2427 | ||
2428 | return call_user_func_array( array( $this, 'add_meta' ), $args ); |
|
2429 | } |
|
2430 | ||
2431 | /** |
|
2432 | * @return mixed |
|
@@ 2434-2445 (lines=12) @@ | ||
2431 | /** |
|
2432 | * @return mixed |
|
2433 | */ |
|
2434 | public function update_post_meta () { |
|
2435 | $args = func_get_args(); |
|
2436 | ||
2437 | array_unshift( $args, 'post_type' ); |
|
2438 | ||
2439 | $_null = apply_filters( 'pods_meta_update_post_meta', null, $args ); |
|
2440 | ||
2441 | if ( null !== $_null ) |
|
2442 | return $_null; |
|
2443 | ||
2444 | return call_user_func_array( array( $this, 'update_meta' ), $args ); |
|
2445 | } |
|
2446 | ||
2447 | /** |
|
2448 | * @return mixed |
|
@@ 2450-2461 (lines=12) @@ | ||
2447 | /** |
|
2448 | * @return mixed |
|
2449 | */ |
|
2450 | public function update_user_meta () { |
|
2451 | $args = func_get_args(); |
|
2452 | ||
2453 | array_unshift( $args, 'user' ); |
|
2454 | ||
2455 | $_null = apply_filters( 'pods_meta_update_user_meta', null, $args ); |
|
2456 | ||
2457 | if ( null !== $_null ) |
|
2458 | return $_null; |
|
2459 | ||
2460 | return call_user_func_array( array( $this, 'update_meta' ), $args ); |
|
2461 | } |
|
2462 | ||
2463 | /** |
|
2464 | * @return mixed |
|
@@ 2466-2477 (lines=12) @@ | ||
2463 | /** |
|
2464 | * @return mixed |
|
2465 | */ |
|
2466 | public function update_comment_meta () { |
|
2467 | $args = func_get_args(); |
|
2468 | ||
2469 | array_unshift( $args, 'comment' ); |
|
2470 | ||
2471 | $_null = apply_filters( 'pods_meta_update_comment_meta', null, $args ); |
|
2472 | ||
2473 | if ( null !== $_null ) |
|
2474 | return $_null; |
|
2475 | ||
2476 | return call_user_func_array( array( $this, 'update_meta' ), $args ); |
|
2477 | } |
|
2478 | ||
2479 | /** |
|
2480 | * @return mixed |
|
@@ 2482-2493 (lines=12) @@ | ||
2479 | /** |
|
2480 | * @return mixed |
|
2481 | */ |
|
2482 | public function update_term_meta () { |
|
2483 | $args = func_get_args(); |
|
2484 | ||
2485 | array_unshift( $args, 'term' ); |
|
2486 | ||
2487 | $_null = apply_filters( 'pods_meta_update_term_meta', null, $args ); |
|
2488 | ||
2489 | if ( null !== $_null ) |
|
2490 | return $_null; |
|
2491 | ||
2492 | return call_user_func_array( array( $this, 'update_meta' ), $args ); |
|
2493 | } |
|
2494 | ||
2495 | /** |
|
2496 | * @return mixed |
|
@@ 2498-2509 (lines=12) @@ | ||
2495 | /** |
|
2496 | * @return mixed |
|
2497 | */ |
|
2498 | public function update_option () { |
|
2499 | $args = func_get_args(); |
|
2500 | ||
2501 | array_unshift( $args, 'settings' ); |
|
2502 | ||
2503 | $_null = apply_filters( 'pods_meta_update_option', null, $args ); |
|
2504 | ||
2505 | if ( null !== $_null ) |
|
2506 | return $_null; |
|
2507 | ||
2508 | return call_user_func_array( array( $this, 'update_meta' ), $args ); |
|
2509 | } |
|
2510 | ||
2511 | /** |
|
2512 | * @return mixed |
|
@@ 2514-2525 (lines=12) @@ | ||
2511 | /** |
|
2512 | * @return mixed |
|
2513 | */ |
|
2514 | public function delete_post_meta () { |
|
2515 | $args = func_get_args(); |
|
2516 | ||
2517 | array_unshift( $args, 'post_type' ); |
|
2518 | ||
2519 | $_null = apply_filters( 'pods_meta_delete_post_meta', null, $args ); |
|
2520 | ||
2521 | if ( null !== $_null ) |
|
2522 | return $_null; |
|
2523 | ||
2524 | return call_user_func_array( array( $this, 'delete_meta' ), $args ); |
|
2525 | } |
|
2526 | ||
2527 | /** |
|
2528 | * @return mixed |
|
@@ 2530-2541 (lines=12) @@ | ||
2527 | /** |
|
2528 | * @return mixed |
|
2529 | */ |
|
2530 | public function delete_user_meta () { |
|
2531 | $args = func_get_args(); |
|
2532 | ||
2533 | array_unshift( $args, 'user' ); |
|
2534 | ||
2535 | $_null = apply_filters( 'pods_meta_delete_user_meta', null, $args ); |
|
2536 | ||
2537 | if ( null !== $_null ) |
|
2538 | return $_null; |
|
2539 | ||
2540 | return call_user_func_array( array( $this, 'delete_meta' ), $args ); |
|
2541 | } |
|
2542 | ||
2543 | /** |
|
2544 | * @return mixed |
|
@@ 2546-2557 (lines=12) @@ | ||
2543 | /** |
|
2544 | * @return mixed |
|
2545 | */ |
|
2546 | public function delete_comment_meta () { |
|
2547 | $args = func_get_args(); |
|
2548 | ||
2549 | array_unshift( $args, 'comment' ); |
|
2550 | ||
2551 | $_null = apply_filters( 'pods_meta_delete_comment_meta', null, $args ); |
|
2552 | ||
2553 | if ( null !== $_null ) |
|
2554 | return $_null; |
|
2555 | ||
2556 | return call_user_func_array( array( $this, 'delete_meta' ), $args ); |
|
2557 | } |
|
2558 | ||
2559 | /** |
|
2560 | * @return mixed |
|
@@ 2562-2573 (lines=12) @@ | ||
2559 | /** |
|
2560 | * @return mixed |
|
2561 | */ |
|
2562 | public function delete_term_meta () { |
|
2563 | $args = func_get_args(); |
|
2564 | ||
2565 | array_unshift( $args, 'term' ); |
|
2566 | ||
2567 | $_null = apply_filters( 'pods_meta_delete_term_meta', null, $args ); |
|
2568 | ||
2569 | if ( null !== $_null ) |
|
2570 | return $_null; |
|
2571 | ||
2572 | return call_user_func_array( array( $this, 'delete_meta' ), $args ); |
|
2573 | } |
|
2574 | ||
2575 | /** |
|
2576 | * @return mixed |
|
@@ 2578-2589 (lines=12) @@ | ||
2575 | /** |
|
2576 | * @return mixed |
|
2577 | */ |
|
2578 | public function delete_option () { |
|
2579 | $args = func_get_args(); |
|
2580 | ||
2581 | array_unshift( $args, 'settings' ); |
|
2582 | ||
2583 | $_null = apply_filters( 'pods_meta_delete_option', null, $args ); |
|
2584 | ||
2585 | if ( null !== $_null ) |
|
2586 | return $_null; |
|
2587 | ||
2588 | return call_user_func_array( array( $this, 'delete_meta' ), $args ); |
|
2589 | } |
|
2590 | ||
2591 | /* |
|
2592 | * The real meta functions |