Widget core code file
-
Hello, I am new to WP so it’s a bit of a learning curve but an easy one. Since WP uses hooks and short code which is nice. I am unable to find the some code I am needing to edit.
Where is the core code for where the widgets are built? In my themes file for sidebar.php it has this which is nothing but hooks. Where would I find those hooks where the core code for the widget is constructed?
sidebar.php
<?php global $theme; ?> <div id="sidebar-primary"> <?php if(!dynamic_sidebar('sidebar_primary')) { /** * The primary sidebar widget area. Manage the widgets from: wp-admin -> Appearance -> Widgets */ $theme->hook('sidebar_primary'); } $theme->hook("sidebar_primary_after"); ?> </div><!-- #sidebar-primary --> <div id="sidebar-secondary"> <?php if(!dynamic_sidebar('sidebar_secondary')) { /** * The secondary sidebar widget area. Manage the widgets from: wp-admin -> Appearance -> Widgets */ $theme->hook('sidebar_secondary'); } ?> </div><!-- #sidebar-secondary -->
Viewing 11 replies - 1 through 11 (of 11 total)
Viewing 11 replies - 1 through 11 (of 11 total)
- The topic ‘Widget core code file’ is closed to new replies.