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
* Expects an already sanitized value. * * @param int $post_id The WP Post ID. * @param int $field_id The field identifier. * @param mixed $val Value to save. * @return bool */ protected function save_field_db( $post_id, $field_id, $val ) { return update_post_meta( $post_id, $field_id, $val ) ? true : false; } /** * Allows extending classes to perform additional save methods before the default save. * * Called before `$this->save()` during `$this->save_actions()`. *
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |