Yeah... Not sure what's going on. I admit looking back at the code now that I should be seeing redeclare errors. But everything is loading and functioning just fine with no errors displayed. my php is set to show all errors right now.
Because looking at what I'm using now, with a non-foggy brain I can see that the if-check I used was completely useless.
It is however only loading one instance of the meta-keys.
I guess at this point combining all the plug-ins into one larger plug-in would make more sense, but I kind of like the ability for users to just download and use the parts they want.
So here's how it's setup currently.
zenFBSuite of plug-ins load all the required meta-keys for the OpenGraph data that makes them function properly. They all use the same meta-keys so they only need to load once. Previously (before switching to this filter usage) it was loading each set of meta keys equal to the number of the plug-ins used.
It was messy but I figured the minor overhead usage was better than one large plug-in with all the options and then confusion on which to set for which plugin.
So now, I've converted all the meta-keys from addpluginscript functions to one function called zenFBOpenGraphJS().
Each plug-in has the same function, and each function uses a `zp_register_filter('theme_head', 'zenFBOpenGraphJS');`
After enabling all plug-ins at once and checking the header, it's only loading one set of meta-keys, which is ideal. I'm just worried I'm not going about it properly, since now that I look back at the code, the if-check is really not stopping the function call.
They all use the above from codeblock the same, so if I'm understanding what you said sbillard, it functions that way properly since they're all the same priority? So since they're all the same priority, they all are combined into once instance, so I shouldn't be getting the redeclare error, right?(which I'm not currently)