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/Pages.php 1 location
|
@@ 621-632 (lines=12) @@
|
| 618 |
|
* |
| 619 |
|
* @return array|bool|int|mixed|null|string|void |
| 620 |
|
*/ |
| 621 |
|
public function get_meta( $_null, $post_ID = null, $meta_key = null, $single = false ) { |
| 622 |
|
|
| 623 |
|
if ( 'code' === $meta_key ) { |
| 624 |
|
$post = get_post( $post_ID ); |
| 625 |
|
|
| 626 |
|
if ( is_object( $post ) && $this->object_type == $post->post_type ) { |
| 627 |
|
return $post->post_content; |
| 628 |
|
} |
| 629 |
|
} |
| 630 |
|
|
| 631 |
|
return $_null; |
| 632 |
|
} |
| 633 |
|
|
| 634 |
|
/** |
| 635 |
|
* Save the fields |
components/Templates/Templates.php 1 location
|
@@ 414-425 (lines=12) @@
|
| 411 |
|
* |
| 412 |
|
* @return array|bool|int|mixed|null|string|void |
| 413 |
|
*/ |
| 414 |
|
public function get_meta( $_null, $post_ID = null, $meta_key = null, $single = false ) { |
| 415 |
|
|
| 416 |
|
if ( 'code' === $meta_key ) { |
| 417 |
|
$post = get_post( $post_ID ); |
| 418 |
|
|
| 419 |
|
if ( is_object( $post ) && $this->object_type == $post->post_type ) { |
| 420 |
|
return $post->post_content; |
| 421 |
|
} |
| 422 |
|
} |
| 423 |
|
|
| 424 |
|
return $_null; |
| 425 |
|
} |
| 426 |
|
|
| 427 |
|
/** |
| 428 |
|
* Save the fields |