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'
Return Return
(string)
Source Source
File: includes/llms.functions.core.php
569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 | */ 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 ) ); |
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.18.0 | Introduced. |