llms_get_option_page_anchor( string $option_name, string $target = '_blank' )

Retrieve an HTML anchor for an option page


Parameters Parameters

$option_name

(string) (Required) Option name.

$target

(string) (Optional) HTML target attribute. Defaults to _blank.

Default value: '_blank'


Top ↑

Return Return

(string)


Top ↑

Source Source

File: includes/llms.functions.core.php

 */
function llms_get_option_page_anchor( $option_name, $target = '_blank' ) {

	$page_id = get_option( $option_name );

	if ( ! $page_id ) {
		return '';
	}

	$target = $target ? ' target="' . esc_attr( $target ) . '"' : '';

	return sprintf(
		'<a href="%1$s"%2$s>%3$s</a>',
		get_the_permalink( $page_id ),
		$target,
		get_the_title( $page_id )
	);



Top ↑

Changelog Changelog

Changelog
Version Description
3.18.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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