LLMS_Admin_Metabox::save_actions( int $post_id )
Perform Save Actions.
Description Description
Triggers actions for before and after save and calls the save method which actually saves metadata.
This is called automatically on save_post_{$post_type} for all screens defined in $this->screens.
Parameters Parameters
- $post_id
-
(int) (Required) WP Post ID of the post being saved.
Return Return
(void)
Source Source
File: includes/abstracts/abstract.llms.admin.metabox.php
$flags[] = FILTER_REQUIRE_ARRAY;
}
$val = llms_filter_input_sanitize_string( INPUT_POST, $field['id'], $flags );
return $this->save_field_db( $post_id, $field['id'], $val );
}
protected function handler_instructors_mb_store( $post_id, $field, $request ) {
if ( ! llms_current_user_can_edit_product( $post_id ) ) {
return false;
}
$post = llms_get_post( $post_id );
$instructors = array();
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 3.0.0 | Introduced. |