Skip to content

Commit

Permalink
=4.2.6.5= ~ edit filter course sections field
Browse files Browse the repository at this point in the history
  • Loading branch information
khanhbdphyscode committed Apr 8, 2024
1 parent 3183133 commit bf2fbcf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/TemplateHooks/Course/FilterCourseTemplate.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public function sections( array $data = [] ) {
if ( is_callable( [ $this, 'html_' . $field ] ) ) {
$sections[ $field ] = [ 'text_html' => $this->{'html_' . $field}( $data ) ];
} else { // For custom field.
apply_filters( 'learn-press/filter-courses/sections/field', $sections, $field, $data );
$sections[ $field ] = apply_filters( 'learn-press/filter-courses/sections/field/html', NULL, $field, $data );
}
}

Expand Down

0 comments on commit bf2fbcf

Please sign in to comment.