LLMS_Integration_BBPress::save_course_settings( int $post_id )
Save course metabox custom fields
Description Description
Parameters Parameters
- $post_id
-
(int) (Required) WP_Post ID of the course
Return Return
(void)
Source Source
File: includes/integrations/class.llms.integration.bbpress.php
public function save_course_settings( $post_id ) { $ids = array(); if ( isset( $_POST['_llms_bbp_forum_ids'] ) ) { $ids = $_POST['_llms_bbp_forum_ids']; if ( ! is_array( $ids ) ) { $ids = array( $ids ); } $ids = array_map( 'absint', $ids ); } update_post_meta( $post_id, '_llms_bbp_forum_ids', $ids ); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.12.0 | Introduced. |
User Contributed Notes User Contributed Notes
Permalink: