admin_url( 'admin-ajax.php' ), ) ); $add_styles = get_option( 'a-z-listing-add-styling', true ); /** * Determine whether to add default listing styling * * @param bool True to add default styling, False to disable. * @since 1.7.1 */ $add_styles = apply_filters( 'a_z_listing_add_styling', $add_styles ); /** * Determine whether to add default listing styling * * @param bool True to add default styling, False to disable. * @since 1.7.1 */ $add_styles = apply_filters( 'a-z-listing-add-styling', $add_styles ); if ( AZLISTINGLOG ) { do_action( 'log', 'A-Z Listing: Add Styles', $add_styles ); } if ( true === $add_styles && ! has_action( 'wp_enqueue_scripts', 'a_z_listing_enqueue_styles' ) ) { add_action( 'wp_enqueue_scripts', 'a_z_listing_enqueue_styles' ); } add_action( 'customize_controls_enqueue_scripts', 'a_z_listing_customize_enqueue_styles' ); $tabify = get_option( 'a-z-listing-add-tabs', false ); /** * Determine whether to add jQuery-UI Tabs * * @param bool True to add jQuery-UI Tabs, False to disable. * @since 2.0.0 */ $tabify = apply_filters( 'a_z_listing_tabify', $tabify ); /** * Determine whether to add jQuery-UI Tabs * * @param bool True to add jQuery-UI Tabs, False to disable. * @since 2.0.0 */ $tabify = apply_filters( 'a-z-listing-tabify', $tabify ); if ( AZLISTINGLOG ) { do_action( 'log', 'A-Z Listing: Tabify', $tabify ); } if ( true === $tabify && ! has_action( 'wp_enqueue_scripts', 'a_z_listing_enqueue_tabs' ) ) { add_action( 'wp_enqueue_scripts', 'a_z_listing_enqueue_tabs' ); } } add_action( 'init', 'a_z_listing_do_enqueue' );