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


Parameters Parameters

$post_ids

(array) (Optional) Indexed array of WordPress Post IDs. Defayult is empty array.

Default value: array()

$template

(string) (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: ''


Top ↑

Return Return

(array)


Top ↑

Source Source

File: includes/llms.functions.core.php

 * @since 7.2.0
 *
 * @return bool
 */
function llms_is_editor_block_rendering() {
	if ( ! defined( 'REST_REQUEST' ) || ! is_user_logged_in() ) {
		return false;
	}

	global $wp;

	if ( ! $wp instanceof WP || empty( $wp->query_vars['rest_route'] ) ) {
		return false;
	}

	$route = $wp->query_vars['rest_route'];

	return false !== strpos( $route, '/block-renderer/' );
}

/**
 * Check if the home URL is https. If it is, we don't need to do things such as 'force ssl'.
 *
 * @thanks woocommerce <3.
 *
 * @since 3.0.0
 *
 * @return bool
 */
function llms_is_site_https() {
	return false !== strstr( get_option( 'home' ), 'https:' );


Top ↑

Changelog Changelog

Changelog
Version Description
3.6.0 Unknown
3.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.