Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
LLMS_Admin_Setup_Wizard::get_save_text( string $step )
Get the text to display on the “save” buttons
Parameters Parameters
- $step
-
(string) (Required) Step to get text for.
Return Return
(string) The translated text.
Source Source
File: includes/admin/class.llms.admin.setup.wizard.php
private function get_save_text( $step ) { $text = __( 'Save & Continue', 'lifterlms' ); if ( 'coupon' === $step ) { $text = __( 'Allow', 'lifterlms' ); } elseif ( 'finish' === $step ) { $text = __( 'Import Courses', 'lifterlms' ); } /** * Filter the Save button text for a given step in the setup wizard * * The dynamic portion of this hook, `$step`, refers to the slug of the current step. * * @since 4.8.0 * * @param string $text Button text string. */ return apply_filters( "llms_setup_wizard_get_{$step}_save_text", $text ); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
4.8.0 | Added a filter on the return value. |
3.3.0 | Unknown. |
3.0.0 | Introduced. |