Notes From Carrie Dils in Lynda Course Genesis and WordPress: Customizing themes
Hooks include actions and filters:
There are add actions and remove actions:
Add Action: instruction on where to add a function or a bit of code
Remove Action: instruction on where to remove a function or bit of code
1.) Adding or removing action
2.) Name or location of the hook If this doesnâ€™t exist nothing bad happens
3.) Callback function must exist or youâ€™ll get a nasty error. Already exists in genesis, wordpress, or write your own.
4.) Priority: Order in which code is executed; 10 is default priority in wordpress so if no priority is specified wordpress will see it as a 10. 5 is executed before 10 and 10 is executed before 15. If two have the same priority then the default is which comes first in the code.
plugin: genesis visual hook guide: you can see on your own site.
In order for a remove action to work there has to be a corresponding add action with the exact same hook, function, priority, and arguments. The reason is logical. You canâ€™t remove something that isnâ€™t there.