-
I searched but did not find an answer. In a separate plugin, I would like to display a link but only if the plugin named Ip-Viewer (https://github.com/faab007nl/Yourls-Ip-Viewer) is installed and activated. For example:
What is the correct, actual code to use for the if statement? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
You will need to know the full path to the plugin file. These functions can help get the available plugins (with info) and check if a specific plugin is active: YOURLS/includes/functions-plugins.php Lines 483 to 511 in 6da30df |
Beta Was this translation helpful? Give feedback.
-
Unbelievable!!! I searched functions-plugins.php a couple three times and overlooked Thank you, DGW. |
Beta Was this translation helpful? Give feedback.
You will need to know the full path to the plugin file. These functions can help get the available plugins (with info) and check if a specific plugin is active:
YOURLS/includes/functions-plugins.php
Lines 483 to 511 in 6da30df