LLMS_Meta_Box_Visibility::save( int $post_id )
Save the settings
Parameters Parameters
- $post_id
-
(int) (Required) WP Post ID.
Return Return
(void)
Source Source
File: includes/admin/post-types/meta-boxes/class.llms.meta.box.visibility.php
public function save( $post_id ) { if ( ! llms_verify_nonce( 'llms_catalog_visibility_nonce', 'llms-catalog-visibility-nonce' ) ) { return; } $visibility = llms_filter_input_sanitize_string( INPUT_POST, '_llms_visibility' ); if ( ! $visibility ) { return; } $product = new LLMS_Product( $post_id ); $product->set_catalog_visibility( $visibility ); }
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.6.0 | |
3.35.0 | Introduced. |