ap_enqueue_scripts()

Description #

Enqueue AnsPress assets.

Changelog #

VersionDescription
2.4.6Introduced.

Source #

File: includes/theme.php

function ap_enqueue_scripts() {
	if ( ap_current_page() !== '' ) {
		wp_enqueue_script( 'anspress-theme' );
	}

	wp_enqueue_style( 'anspress-main' );

	if ( is_rtl() ) {
		wp_enqueue_style( 'anspress-rtl' );
	}
}

Leave a Reply

Your email address will not be published. Required fields are marked *

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

Add your comment