LLMS_Meta_Box_Membership::save( int $post_id )
Save field data.
Description Description
See also See also
Parameters Parameters
- $post_id
-
(Required) WP_Post ID of the post being saved.
Return Return
(int) -1
When no user or user is missing required capabilities or when there's no or invalid nonce. 0
during inline saves or ajax requests or when no fields are found for the metabox. 1
if fields were found. This doesn't mean there weren't errors during saving.
Source Source
File: includes/admin/post-types/meta-boxes/class.llms.meta.box.membership.php
Changelog Changelog
Version | Description |
---|---|
3.36.3 | Added logic to correctly sanitize fields of type 'multi' (array) and 'shortcode' (preventing quotes encode). Also align the return type to the parent save() method. |
3.35.0 | Verify nonces and sanitize $_POST data. |
3.30.0 | Autoenroll courses saved via AJAX and removed from this method. |
3.0.0 | Introduced. |