PluginProbe ʕ •ᴥ•ʔ
Advanced Custom Fields: Extended / 0.5
Advanced Custom Fields: Extended v0.5
0.9.2.6 0.9.2.5 0.8.6 0.8.6.1 0.8.6.3 0.8.6.5 0.8.6.6 0.8.6.7 0.8.6.8 0.8.6.9 0.8.7 0.8.7.1 0.8.7.2 0.8.7.3 0.8.7.4 0.8.7.5 0.8.7.6 0.8.8 0.8.8.1 0.8.8.10 0.8.8.11 0.8.8.2 0.8.8.3 0.8.8.4 0.8.8.5 0.8.8.6 0.8.8.7 0.8.8.8 0.8.8.9 0.8.9 0.8.9.1 0.8.9.2 0.8.9.3 0.8.9.4 0.8.9.5 0.9 0.9.0.1 0.9.0.2 0.9.0.3 0.9.0.4 0.9.0.5 0.9.0.6 0.9.0.7 0.9.0.8 0.9.0.9 0.9.1 0.9.1.1 0.9.2 0.9.2.1 0.9.2.2 0.9.2.3 0.9.2.4 trunk 0.5 0.5.1 0.5.2 0.5.2.1 0.5.2.3 0.5.5 0.5.5.1 0.5.8 0.5.8.1 0.6 0.6.0.1 0.6.0.2 0.6.1 0.6.3 0.6.5 0.6.7 0.6.7.2 0.7 0.7.0.3 0.7.5 0.7.5.5 0.7.8 0.7.9 0.7.9.3 0.7.9.4 0.7.9.9.8 0.7.9.9.9 0.8 0.8.1 0.8.2 0.8.3 0.8.3.1 0.8.4 0.8.4.1 0.8.4.5 0.8.4.6 0.8.5 0.8.5.5
acf-extended / includes / core / helpers.php
acf-extended / includes / core Last commit date
enqueue.php 7 years ago helpers.php 7 years ago
helpers.php
42 lines
1 <?php
2
3 if(!defined('ABSPATH'))
4 exit;
5
6 /**
7 * Print_r
8 */
9 if(!function_exists('_print_r')){
10 function _print_r($data, $args = false){
11 $args = wp_parse_args($args, array(
12 'title' => false,
13 'return' => false,
14 'dump' => false,
15 'pre' => true,
16 ));
17
18 $code = print_r($data, true);
19 if($args['dump']){
20 ob_start();
21 var_dump($data);
22 $code = ob_get_clean();
23 }
24
25 $title = false;
26 if($args['title'])
27 $title = '<h5><strong>' . $args['title'] . '</strong></h5><hr>';
28
29 $pre_start = $pre_end = false;
30 if($args['pre']){
31 $pre_start = "<pre style='position:relative; z-index:1000000;'>";
32 $pre_end = "</pre>";
33 }
34
35 $return = $pre_start . $title . $code . $pre_end;
36
37 if($args['return'])
38 return $return;
39
40 echo $return;
41 }
42 }