This repository has been archived on 2026-10-23. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
aktiv-web/wp-content/plugins/user-role-editor/includes/misc-support-stuff.php
T
2014-07-02 16:30:49 +02:00

32 lines
1.0 KiB
PHP

<?php
/*
* Miscellaneous support stuff, which should still be defined beyond of classes
*
* Author: Vladimir Garagulya
* Author email: vladimir@shinephp.com
* Author URI: http://shinephp.com
* License: GPL v3
*
*/
if (class_exists('GFForms') ) { // if Gravity Forms is installed
// Support for Gravity Forms capabilities
// As Gravity Form has integrated support for the Members plugin - let's imitate its presense,
// so GF code, like
// self::has_members_plugin())
// considers that it is has_members_plugin()
if (!function_exists('members_get_capabilities')) {
include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
if (!is_plugin_active('members/members.php')) {
// define stub function to say "Gravity Forms" plugin: 'Hey! While I'm not the "Members" plugin, but I'm "User Role Editor" and
// I'm capable to manage your roles and capabilities too
function members_get_capabilities() {
}
}
}
}
?>