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_skip_text( string $step )

Get the text to display on the “skip” buttons


Parameters Parameters

$step

(string) (Required) Step to get text for.


Top ↑

Return Return

(string) Translated text.


Top ↑

Source Source

File: includes/admin/class.llms.admin.setup.wizard.php

	private function get_skip_text( $step ) {

		$text = __( 'Skip this step', 'lifterlms' );

		if ( 'coupon' === $step ) {
			$text = __( 'No thanks', 'lifterlms' );
		}

		/**
		 * Filter the skip 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}_skip_text", $text );

	}


Top ↑

Changelog Changelog

Changelog
Version Description
4.8.0 Added a filter on the return value.
3.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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