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
|
@@ 530-539 (lines=10) @@
|
| 527 |
|
* |
| 528 |
|
* @return array|bool|int|mixed|null|string|void |
| 529 |
|
*/ |
| 530 |
|
public function get_meta ( $_null, $post_ID = null, $meta_key = null, $single = false ) { |
| 531 |
|
if ( 'code' == $meta_key ) { |
| 532 |
|
$post = get_post( $post_ID ); |
| 533 |
|
|
| 534 |
|
if ( is_object( $post ) && $this->object_type == $post->post_type ) |
| 535 |
|
return $post->post_content; |
| 536 |
|
} |
| 537 |
|
|
| 538 |
|
return $_null; |
| 539 |
|
} |
| 540 |
|
|
| 541 |
|
/** |
| 542 |
|
* 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 |