Completed
Pull Request — master (#25)
by
unknown
03:51
created

functions.php ➔ carbon_get_user_meta()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 1
Metric Value
cc 1
eloc 2
c 1
b 0
f 1
nc 1
nop 3
dl 0
loc 3
rs 10
ccs 0
cts 1
cp 0
crap 2
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