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
Contents
Return Return
(void)
Source Source
File: includes/class.llms.sidebars.php
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 ) ); } } }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |