@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | * |
78 | 78 | * @since 0.0.1 |
79 | 79 | * |
80 | - * @return Plugin slug variable. |
|
80 | + * @return string slug variable. |
|
81 | 81 | */ |
82 | 82 | public function get_plugin_slug() { |
83 | 83 | return $this->plugin_slug; |
@@ -335,6 +335,9 @@ discard block |
||
335 | 335 | exit; |
336 | 336 | } |
337 | 337 | |
338 | + /** |
|
339 | + * @param string $type |
|
340 | + */ |
|
338 | 341 | public static function enable_metasave($type) |
339 | 342 | { |
340 | 343 | register_rest_field( $type, 'metadata', array( |
@@ -451,6 +454,9 @@ discard block |
||
451 | 454 | exit; |
452 | 455 | } |
453 | 456 | |
457 | + /** |
|
458 | + * @param string $taxonomy |
|
459 | + */ |
|
454 | 460 | public function set_post_terms( $postid, $value, $taxonomy ) { |
455 | 461 | if( $value ) { |
456 | 462 | $value = explode( ',', $value ); |
@@ -484,6 +490,9 @@ discard block |
||
484 | 490 | } |
485 | 491 | } |
486 | 492 | |
493 | + /** |
|
494 | + * @return string |
|
495 | + */ |
|
487 | 496 | function getEnglishMonthName($foreignMonthName){ |
488 | 497 | |
489 | 498 | setlocale(LC_ALL, 'en_US'); |