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/a-z-styling.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
Version Description
0.7 Introduced.


User Contributed Notes

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

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