components/Helpers.php 1 location
|
@@ 299-308 (lines=10) @@
|
296 |
|
* |
297 |
|
* @return array|bool|int|mixed|null|string|void |
298 |
|
*/ |
299 |
|
public function get_meta( $_null, $post_ID = null, $meta_key = null, $single = false ) { |
300 |
|
if ( 'code' == $meta_key ) { |
301 |
|
$post = get_post( $post_ID ); |
302 |
|
|
303 |
|
if ( is_object( $post ) && $this->object_type == $post->post_type ) |
304 |
|
return $post->post_content; |
305 |
|
} |
306 |
|
|
307 |
|
return $_null; |
308 |
|
} |
309 |
|
|
310 |
|
/** |
311 |
|
* Save the fields |
components/Templates/Templates.php 1 location
|
@@ 354-363 (lines=10) @@
|
351 |
|
* |
352 |
|
* @return array|bool|int|mixed|null|string|void |
353 |
|
*/ |
354 |
|
public function get_meta ( $_null, $post_ID = null, $meta_key = null, $single = false ) { |
355 |
|
if ( 'code' == $meta_key ) { |
356 |
|
$post = get_post( $post_ID ); |
357 |
|
|
358 |
|
if ( is_object( $post ) && $this->object_type == $post->post_type ) |
359 |
|
return $post->post_content; |
360 |
|
} |
361 |
|
|
362 |
|
return $_null; |
363 |
|
} |
364 |
|
|
365 |
|
/** |
366 |
|
* Save the fields |
components/Pages.php 1 location
|
@@ 553-562 (lines=10) @@
|
550 |
|
* |
551 |
|
* @return array|bool|int|mixed|null|string|void |
552 |
|
*/ |
553 |
|
public function get_meta ( $_null, $post_ID = null, $meta_key = null, $single = false ) { |
554 |
|
if ( 'code' == $meta_key ) { |
555 |
|
$post = get_post( $post_ID ); |
556 |
|
|
557 |
|
if ( is_object( $post ) && $this->object_type == $post->post_type ) |
558 |
|
return $post->post_content; |
559 |
|
} |
560 |
|
|
561 |
|
return $_null; |
562 |
|
} |
563 |
|
|
564 |
|
/** |
565 |
|
* Save the fields |