a_z_listing_enqueue_styles( bool $force = false )

Enqueue A-Z default styling on pages where either the widget or the shortcode are active


Description


Parameters

$force

(bool) (Optional) Set this to true if you want the styling to always be enqueued.

Default value: false


Source

File: functions/styles.php

function a_z_listing_enqueue_styles( $force = false ) {
	global $post;
	if ( ! ( $force || is_active_widget( false, false, 'bh_az_widget', true ) || ( is_singular() && has_shortcode( $post->post_content, 'a-z-listing' ) ) ) ) {
		return;
	}
	wp_enqueue_style( 'a-z-listing' );
}

Changelog

Changelog
VersionDescription
0.7Introduced.

More Information

You are currently logged out. To view tickets you must first login.

I have read and understood the Terms of Service



User Contributed Notes

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.