p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   BOOK: Professional WordPress: Design and Development, 2nd Edition (http://p2p.wrox.com/forumdisplay.php?f=732)
-   -   Possible code problem on page 161 (http://p2p.wrox.com/showthread.php?t=90336)

lwoods June 13th, 2013 09:37 AM

Possible code problem on page 161
 
Function prowp_create_menu is called from the admin_menu hook. In the function it executes an add_action to the admin_init hook. BUT the admin_hook will have already been executed at this time, right? I think that the add_action to the admin_init hook should be outside the function. If not, could someone explain?


All times are GMT -4. The time now is 06:00 PM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.