LLMS_Meta_Box_Visibility::save( int $post_id )

Save the settings


Parameters Parameters

$post_id

(int) (Required) WP Post ID.


Top ↑

Return Return

(void)


Top ↑

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 );

	}


Top ↑

Changelog Changelog

Changelog
Version Description
5.9.0 Stop using deprecated FILTER_SANITIZE_STRING.
3.6.0
3.35.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.