ap_enqueue_scripts()

Description #

Enqueue AnsPress assets.

Changelog #

VersionDescription
2.4.6Introduced.

Source #

File: includes/theme.php

672
673
674
675
676
677
678
679
680
681
682
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.

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

Add your comment