Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




is_plugin_active [ WordPress Function ]

is_plugin_active ( $plugin )
Parameters:
  • (string) $plugin Base plugin path from plugins directory.
Returns:
  • (bool) True, if in the active plugins list. False, not in the list.
Defined at:



Check whether the plugin is active by checking the active_plugins list.

Source


<?php
function is_plugin_active$plugin ) {
    return 
in_array$plugin, (array) get_option'active_plugins', array() ) ) || is_plugin_active_for_network$plugin );
}
?>

Examples [ wp-snippets.com ]

Google Arama Sonuçlarý

Dahasý ...

0 User Note(s)

Henüz yok. Ýlk sen ol!

Yeni Ekle ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics