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