@@ -103,8 +103,8 @@ |
||
103 | 103 | * |
104 | 104 | * @since 1.9.0 |
105 | 105 | * |
106 | - * @param $title |
|
107 | - * @param $shortcode_specific_override |
|
106 | + * @param string $title |
|
107 | + * @param string $shortcode_specific_override |
|
108 | 108 | * @return string |
109 | 109 | */ |
110 | 110 | public static function generate_shortcode_courses( $title , $shortcode_specific_override ){ |
@@ -114,7 +114,7 @@ |
||
114 | 114 | * |
115 | 115 | * @since 1.9.0 |
116 | 116 | * |
117 | - * @param array $category_ids |
|
117 | + * @param array $categories |
|
118 | 118 | * @return array |
119 | 119 | */ |
120 | 120 | public function generate_term_ids( $categories = array() ){ |
@@ -325,7 +325,7 @@ |
||
325 | 325 | * |
326 | 326 | * @param array $classes |
327 | 327 | * @param WP_Post $course |
328 | - * @return array $classes |
|
328 | + * @return string[] $classes |
|
329 | 329 | */ |
330 | 330 | public function course_status_class_tagging($classes, $course){ |
331 | 331 |
@@ -167,8 +167,6 @@ |
||
167 | 167 | |
168 | 168 | /** |
169 | 169 | * Load the desired component, if a method is available for it. |
170 | - * @param string $component The component to potentially be loaded. |
|
171 | - * |
|
172 | 170 | * @since 1.0.0 |
173 | 171 | * @return void |
174 | 172 | */ |
@@ -151,7 +151,6 @@ |
||
151 | 151 | |
152 | 152 | /** |
153 | 153 | * Load the desired component, if a method is available for it. |
154 | - * @param string $component The component to potentially be loaded. |
|
155 | 154 | * @since 5.0.8 |
156 | 155 | * @return void |
157 | 156 | */ |
@@ -199,7 +199,7 @@ discard block |
||
199 | 199 | * |
200 | 200 | * @access public |
201 | 201 | * @param mixed $slug |
202 | - * @param mixed $option |
|
202 | + * @param string $option |
|
203 | 203 | * @param string $page_title (default: '') |
204 | 204 | * @param string $page_content (default: '') |
205 | 205 | * @param int $post_parent (default: 0) |
@@ -1047,6 +1047,9 @@ discard block |
||
1047 | 1047 | ?></div><?php |
1048 | 1048 | } |
1049 | 1049 | |
1050 | + /** |
|
1051 | + * @return string |
|
1052 | + */ |
|
1050 | 1053 | public function get_course_order() { |
1051 | 1054 | return get_option( 'sensei_course_order', '' ); |
1052 | 1055 | } |
@@ -817,7 +817,7 @@ |
||
817 | 817 | * @param int $user_id |
818 | 818 | * @param int $product_id |
819 | 819 | * |
820 | - * @return bool |
|
820 | + * @return boolean|null |
|
821 | 821 | */ |
822 | 822 | public static function has_customer_bought_product ( $user_id, $product_id ){ |
823 | 823 |
@@ -848,7 +848,6 @@ discard block |
||
848 | 848 | * course_count function. |
849 | 849 | * |
850 | 850 | * @access public |
851 | - * @param array $exclude (default: array()) |
|
852 | 851 | * @param string $post_status (default: 'publish') |
853 | 852 | * @return int |
854 | 853 | */ |
@@ -1159,7 +1158,6 @@ discard block |
||
1159 | 1158 | * |
1160 | 1159 | * @since 1.4.0 |
1161 | 1160 | * @param object $user Queried user object |
1162 | - * @param boolean $manage Whether the user has permission to manage the courses |
|
1163 | 1161 | * @return string HTML displayng course data |
1164 | 1162 | */ |
1165 | 1163 | public function load_user_courses_content( $user = false ) { |
@@ -239,7 +239,7 @@ discard block |
||
239 | 239 | * |
240 | 240 | * @access public |
241 | 241 | * @param int $post_id |
242 | - * @return void |
|
242 | + * @return integer|null |
|
243 | 243 | */ |
244 | 244 | public function meta_box_save ( $post_id ) { |
245 | 245 | |
@@ -2418,7 +2418,7 @@ discard block |
||
2418 | 2418 | * |
2419 | 2419 | * @access private |
2420 | 2420 | * @param array $data (default: array()) |
2421 | - * @return void |
|
2421 | + * @return boolean |
|
2422 | 2422 | */ |
2423 | 2423 | private function lesson_delete_question( $data = array() ) { |
2424 | 2424 | |
@@ -2884,7 +2884,7 @@ discard block |
||
2884 | 2884 | * @access public |
2885 | 2885 | * |
2886 | 2886 | * @param int $lesson_id |
2887 | - * @return int|bool $course_id or bool when nothing is found. |
|
2887 | + * @return integer $course_id or bool when nothing is found. |
|
2888 | 2888 | */ |
2889 | 2889 | public function get_course_id( $lesson_id ){ |
2890 | 2890 |