llms_merge_code_button( string $target = 'content', boolean $echo = true, array $codes = array() )
Add a “merge code” button that to auto-add merge codes to email & etc.
Description Description
..
Parameters Parameters
- $target
-
(Optional) target to add the merge code to accepts the ID of a tinymce editor a DOM ID (#element-id) and fallback to outputting an alert where the code can be copied from
Default value: 'content'
- $echo
-
(Optional) if truthy, echos the HTML, otherwise returns it
Default value: true
- $codes
-
(Optional) array of custom codes to pass in, otherwise the codes are determined what is available for the post type
Default value: array()
Return Return
(void|string)
Source Source
File: includes/admin/llms.functions.admin.php
Changelog Changelog
Version | Description |
---|---|
3.1.0 | Introduced. |