← All changes
|
inc/TemplateHooks/Course/AdminEditSettingTemplate.php
+2
-2
4.4.4
→
4.4.8
View file →
| @@ -89,9 +89,9 @@ | ||
| 89 | 89 | ); |
| 90 | 90 | |
| 91 | 91 | if ( isset( $tab['content'] ) ) { |
| 92 | 92 | ob_start(); |
| 93 | - do_action( 'learnpress/course-settings/before-' . $key ); | |
| 93 | + do_action( 'learnpress/course-settings/before-' . $key, $post_id ); | |
| 94 | 94 | |
| 95 | 95 | foreach ( $tab['content'] as $meta_key => $object ) { |
| 96 | 96 | if ( is_a( $object, LP_Meta_Box_Field::class ) ) { |
| 97 | 97 | $object->id = $meta_key; |
| @@ -101,9 +101,9 @@ | ||
| 101 | 101 | } |
| 102 | 102 | } |
| 103 | 103 | } |
| 104 | 104 | |
| 105 | - do_action( 'learnpress/course-settings/after-' . $key ); | |
| 105 | + do_action( 'learnpress/course-settings/after-' . $key, $post_id ); | |
| 106 | 106 | $panel_html = ob_get_clean(); |
| 107 | 107 | |
| 108 | 108 | $panels .= sprintf( |
| 109 | 109 | '<div id="%s" class="lp-meta-box-course-panels">%s</div>', |