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

User Contributed Notes

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