Exemplo n.º 1
0
function wssCustomLinks($links)
{
    if (wpsIsValidInstall()) {
        return array_merge(array('<a href="admin.php?page=' . WPS_PLUGIN_PREFIX . 'settings">' . __('Settings', WpsSettings::TEXT_DOMAIN) . '</a>'), $links);
    } else {
        return $links;
    }
}
Exemplo n.º 2
0
/**
 * make sure we can display any of the plugin's pages
 * @return bool
 */
function wpsCanDisplayPage()
{
    if (!WsdUtil::canLoad()) {
        return false;
    }
    if (!WsdUtil::isAdministrator()) {
        return false;
    }
    if (!wpsIsValidInstall()) {
        wpsDisplayInstallErrorNotices();
        return false;
    }
    return true;
}