LLMS_Admin_Setup_Wizard::get_next_step( string $step = '' )
Get slug if next step
Parameters Parameters
- $step
-
(string) (Optional) Step to use as current.
Default value: ''
Return Return
(string|false)
Source Source
File: includes/admin/class.llms.admin.setup.wizard.php
*/ protected function save_coupon() { update_option( 'llms_allow_tracking', 'yes' ); $req = LLMS_Tracker::send_data( true ); $ret = new WP_Error( 'llms-setup-coupon-save-unknown', esc_html__( 'There was an error saving your data, please try again.', 'lifterlms' ) ); if ( is_wp_error( $req ) ) { $ret = $req; } elseif ( empty( $req['success'] ) && isset( $req['message'] ) ) { $ret = new WP_Error( 'llms-setup-coupon-save-tracking-api', $req['message'] ); } elseif ( ! empty( $req['success'] ) && true === $req['success'] ) {
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
4.8.0 | Combined combined if/elseif into a single condition & use strict array_search() comparison. |
3.0.0 | Introduced. |