a_z_listing_force_enable_styles()

Replace the default styling enqueue function with a_z_listing_force_enqueue_styles to always add the styling to pages


Description


Source

File: functions/styles.php

function a_z_listing_force_enable_styles() {
	if ( has_action( 'wp_enqueue_scripts', 'a_z_listing_enqueue_styles' ) ) {
		remove_action( 'wp_enqueue_scripts', 'a_z_listing_enqueue_styles' );
	}
	add_action( 'wp_enqueue_scripts', 'a_z_listing_force_enqueue_styles' );
}

Changelog

Changelog
VersionDescription
1.3.0Introduced.

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.