for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
defined('WPINC') || exit;
if (!function_exists('str_starts_with')) {
function str_starts_with(?string $haystack, ?string $needle): bool {
return 0 === strncmp((string) $haystack, (string) $needle, strlen((string) $needle));
}
/*
* @return array
* @see https://docs.gravityforms.com/gform_noconflict_scripts/
*/
add_filter('gform_noconflict_scripts', function (array $scripts) {
$scripts[] = 'blackbar';
return $scripts;
});
* @see https://docs.gravityforms.com/gform_noconflict_styles/
add_filter('gform_noconflict_styles', function (array $styles) {
$styles[] = 'blackbar';
$styles[] = 'blackbar-syntax';
return $styles;