Here’s a cool little trick for adding widget areas that are unique to posts, but without cluttering up Appearance->Widgets in the admin. Instead, we utilize the Customizer, which is perfect for this sort of thing. First thing, we need to hook a function into init where we register our widget area.
|
1 2 3 4 5 |
add_action( 'init', 'my_namespaced_widgets_area' ); function my_namespaced_widgets_area() { // Our code goes here. } |
We are using init ... Read More




