/var/www/vhosts/ihelp.ro/ajutam.ro/wp-content/plugins/give/src/Helpers
Edit: /var/www/vhosts/ihelp.ro/ajutam.ro/wp-content/plugins/give/src/Helpers/Utils.php (3005B)
false], $url);
}
}
if ($addArgs) {
foreach ($addArgs as $name => $value) {
$url = add_query_arg([$name => $value], $url);
}
}
return $url;
}
/**
* Remove giveDonationAction from URL.
*
* @since 2.7.0
*
* @param $url
*
* @return string
*/
public static function removeDonationAction($url)
{
return add_query_arg(['giveDonationAction' => false], $url);
}
/**
* Determines whether a plugin is active.
*
* Only plugins installed in the plugins/ folder can be active.
*
* Plugins in the mu-plugins/ folder can't be "activated," so this function will
* return false for those plugins.
*
* For more information on this and similar theme functions, check out
* the {@link https://developer.wordpress.org/themes/basics/conditional-tags/
* Conditional Tags} article in the Theme Developer Handbook.
*
* @since 2.7.0
*
* @param string $plugin Path to the plugin file relative to the plugins directory.
*
* @return bool True, if in the active plugins list. False, not in the list.
*/
public static function isPluginActive($plugin)
{
if ( ! function_exists('is_plugin_active')) {
include_once ABSPATH . 'wp-admin/includes/plugin.php';
}
return is_plugin_active($plugin);
}
}