LLMS_Meta_Box_Course_Options::save_before( int $post_id )
Update course difficulty on save
Parameters Parameters
- $post_id
-
(int) (Required) WP Post ID of the course
Return Return
(void)
Source Source
File: includes/admin/post-types/meta-boxes/class.llms.meta.box.course.options.php
379 380 381 382 383 384 385 386 387 388 389 390 391 392 | unset( $fields [1][ 'fields' ][1] ); // difficulty. } return $fields ; } /** * Update course difficulty on save * * @since 3.0.0 * @since 3.26.3 Only save when using the classic editor. * @since 3.35.0 Verify nonces and sanitize ` $_POST ` data. * @since 5.9.0 Stop using deprecated `FILTER_SANITIZE_STRING`. |
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
5.9.0 | Stop using deprecated FILTER_SANITIZE_STRING . |
3.35.0 | Verify nonces and sanitize $_POST data. |
3.26.3 | Only save when using the classic editor. |
3.0.0 | Introduced. |