LLMS_Sidebars::genesis_do_sidebar()

Outputs llms sidebars in place of the default Genesis Primary Sidebar Removes the default sidebar action and calls the respective output method from this class instead


Return Return

(void)


Top ↑

Source Source

File: includes/class.llms.sidebars.php

141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
public static function genesis_do_sidebar() {
 
    $post_type = get_post_type();
 
    if ( in_array( $post_type, array( 'course', 'lesson' ) ) ) {
 
        remove_action( 'genesis_sidebar', 'genesis_do_sidebar' );
 
        $method = 'do_' . $post_type . '_sidebar';
 
        if ( method_exists( __CLASS__, $method ) ) {
            add_action( 'genesis_sidebar', array( __CLASS__, $method ) );
        }
    }
 
}

Top ↑

Changelog Changelog

Changelog
Version Description
3.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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