1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
use Carbon_Fields\Helper\Helper; |
4
|
|
|
|
5
|
|
|
if ( ! function_exists( 'carbon_get_post_meta' ) ) { |
6
|
|
|
function carbon_get_post_meta( $id, $name, $type = null ) { |
7
|
|
|
return Helper::get_post_meta( $id, $name, $type ); |
8
|
|
|
} |
9
|
|
|
} |
10
|
|
|
|
11
|
|
|
if ( ! function_exists( 'carbon_get_the_post_meta' ) ) { |
12
|
|
|
function carbon_get_the_post_meta( $name, $type = null ) { |
13
|
|
|
return Helper::get_the_post_meta( $name, $type ); |
14
|
|
|
} |
15
|
|
|
} |
16
|
|
|
|
17
|
|
|
if ( ! function_exists( 'carbon_get_theme_option' ) ) { |
18
|
|
|
function carbon_get_theme_option( $name, $type = null ) { |
19
|
|
|
return Helper::get_theme_option( $name, $type ); |
20
|
|
|
} |
21
|
|
|
} |
22
|
|
|
|
23
|
|
|
if ( ! function_exists( 'carbon_get_term_meta' ) ) { |
24
|
|
|
function carbon_get_term_meta( $id, $name, $type = null ) { |
25
|
|
|
return Helper::get_term_meta( $id, $name, $type ); |
26
|
|
|
} |
27
|
|
|
} |
28
|
|
|
|
29
|
|
|
if ( ! function_exists( 'carbon_get_user_meta' ) ) { |
30
|
|
|
function carbon_get_user_meta( $id, $name, $type = null ) { |
31
|
|
|
return Helper::get_user_meta( $id, $name, $type ); |
32
|
|
|
} |
33
|
|
|
} |
34
|
|
|
|
35
|
|
|
if ( ! function_exists( 'carbon_get_comment_meta' ) ) { |
36
|
|
|
function carbon_get_comment_meta( $id, $name, $type = null ) { |
37
|
|
|
return Helper::get_comment_meta( $id, $name, $type ); |
38
|
|
|
} |
39
|
|
|
} |
40
|
|
|
|