![]() |
Accessing variable of one plugin from another
Say I have a variable $myvar in global_bootstrap_complete.
How do I access it from postbit_display_complete? Also, what do the "shaded" hooks mean in debug info? |
Shaded means the hook is available but not being used by an active plugin on that page.
Usually the variable should be available for use. However, sometime a hook is in a function and you may have to globalize the variables in order to use it there. |
Can you show me an example? I tried using global before, it didn't work.
For example, global_bootstrap_complete PHP Code:
PHP Code:
|
global_bootstrap_complete:
PHP Code:
PHP Code:
|
* CvP punches himself.
result of not having proper sleep. Thanks Lynne :D |
All times are GMT. The time now is 04:41 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|