groups

name language licence
Unique Single template PHP Other
Query Posts PHP Other
Feature post highlighting PHP Other
Retrieve and Display Images from a WordPress Post PHP Other
Attachment display PHP Other
function_exists() PHP Other
Linking Without Using Permalinks PHP Other
Static Page with Mini-Loop PHP Other

< 1 2 3 >



language: PHP
licence: Other

function_exists()

options: view full snippetsend to code collector
To detect if a plugin is installed, you can use a simple function_exists() check. The if (function_exists()) checks for tThe plugin, and if it exists, it will use it. If it returns FALSE or "not found", it will ignore the plugin tag and continue loading the page.


<?php
if (function_exists('FUNCTION NAME')) {
  FUNCTION_NAME();
}
?>
	
(Continues...)