llms_make_select2_post_array( array $post_ids = array(), string $template = '' )
Create an array that can be passed to metabox select elements configured as an llms-select2-post query-ier
Description Description
Parameters Parameters
- $post_ids
-
(Optional) Indexed array of WordPress Post IDs. Defayult is empty array.
Default value: array()
- $template
-
(Optional) A template to customize the way the results look. Default is empty string. {title} and {id} can be passed into the template and will be replaced with the post title and post id respectively.
Default value: ''
Return Return
(array)
Source Source
File: includes/llms.functions.core.php
Changelog Changelog
Version | Description |
---|---|
3.6.0 | Unknown |
3.0.0 | Introduced. |