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_Data::get_page_data( string $option )
Get an option that should return a page ID and return the page name and ID as a formatted string
Parameters Parameters
- $option
-
(string) (Required) Option name in the wp_options table.
Return Return
(string)
Source Source
File: includes/class.llms.data.php
private static function get_page_data( $option ) { $id = get_option( $option ); if ( absint( $id ) ) { return sprintf( '%1$s (#%2$d) [%3$s]', get_the_title( $id ), $id, get_permalink( $id ) ); } return 'Not Set'; // Don't translate this or you won't be able to read it smartypants. }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |