A WordPress framework for news websites. Finely-crafted by INN and expertly-honed and maintained by the technology team at WP Buddy.
GNU General Public License v2.0
171
stars
83
forks
source link
Make easier to set custom sidebars programmatically #1637
Open
benlk opened 5 years ago
https://github.com/INN/largo/blob/9a95d44fe5b9cba45f67c54d24bc04ee2c60d5ca/inc/sidebars.php#L300-L315
In here, we should add an apply_filters that also passes the queried object as an option on the filter.
This would make it easier to choose the sidebar to be displayed in a given scenario.
This functionality is not included in WordPress' function
get_sidebar
: https://developer.wordpress.org/reference/functions/get_sidebar/