public/wordpress/wp-content/plugins/wp-courseware/includes/models/subscription.php
/**
	 * Save Subscription.
	 *
	 * @since 4.3.0
	 *
	 * @return bool True if successfull, False on failure
	 */
Save Subscription.

@return bool True if successfull, False on failure
Save Subscription . @return bool True if successfull False on failure
public function save() {
		$data = $this->get_data( true );
		if ( empty( $data ) || ! is_array( $data ) ) {
			return false;
		}
		$this->db->update_subscription( $this->get_id(), $data );
		$this->status_transition();
		return $this->get_id();
	}
public function save ( ) { $ data = $ this -> get_data ( true ) ; if ( empty ( $ data ) || ! is_array ( $ data ) ) { return false ; } $ this -> db -> update_subscription ( $ this -> get_id ( ) , $ data ) ; $ this -> status_transition ( ) ; return $ this -> get_id ( ) ; }
Save Subscription.
Save Subscription .