llms_get_dashicon_link( string $url, array $args = array() )
Retrieves HTML for a Dashicon wrapped in an anchor.
Description Description
A utility for adding links to external documentation.
Parameters Parameters
- $url
-
(string) (Required) The URL of the anchor tag.
- $args
-
(array) (Optional) An array of optional configuration options.
- 'size'
(integer) The size of the icon. Default 18. - 'title'
(string) The title attribute of the anchor tag. Default: "More information". - 'icon'
(string) The Dashicon icon to use, @link <a href="https://developer.wordpress.org/resource/dashicons/">https://developer.wordpress.org/resource/dashicons/</a>. Default: "external".
Default value: array()
- 'size'
Return Return
(string)
Source Source
File: includes/admin/llms.functions.admin.php
$req = new LLMS_Dot_Com_API( '/products', array(), 'GET' ); $data = $req->get_result(); if ( $req->is_error() ) { return $data; } set_transient( 'llms_products_api_result', $data, DAY_IN_SECONDS ); } return $data; } /** * Instantiate a new LLMS_Add_On object * * @since 3.22.0 * * @param string|array $addon Add-on data array or a string (such as an ID or update file path) used to lookup the addon. * @param string $lookup_key If $addon is a string, this determines how to lookup the addon from the available list of addons. * @return LLMS_Add_On|LLMS_Helper_Add_On */ function llms_get_add_on( $addon = array(), $lookup_key = 'id' ) {
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
7.0.0 | Introduced. |