Open DavidWells opened 11 years ago
David did you say you were going to take on this project?
Right now we have the switch statements segregated into their respective modules.
I remember you mentioning that you had begun migrating a version of the global settings switch statement into the /shared/ folder.
Yea this has begun on CTA. Still working on it
We have lp_render_metabox and lp_render_global_settings functions running almost identical switch statements. https://github.com/inboundnow/landing-pages/blob/master/functions/functions.admin.php#L466
We should merge all metabox creation into one switch function so we can globally update all metabox styles if we need to.
The metabox functions are going to (eventually) live in /shared/ folder probably with 'inbound_render_metabox' as the function name. So when we need metaboxes for any situation we can use it.
Is it possible to hook into a switch statement for 1 off custom metabox rendering?
Like: do_action('custom_switch_hook_for_extra_metaboxes'); (down towards the bottom)