use Elementor\Controls_Manager; use Elementor\Group_Control_Background; function add_background_and_overlay_to_layout_tab($element, $args) { // === NORMAL BACKGROUND === $element->start_controls_section( ‘custom_background_layout’, [ ‘label’ => __(‘Background (Layout Tab)’, ‘textdomain’), ‘tab’ => Controls_Manager::TAB_LAYOUT, ] ); $element->add_group_control( Group_Control_Background::get_type(), [ ‘name’ => ‘custom_background’, ‘label’ => __(‘Background’, ‘textdomain’), ‘types’ => [‘classic’,…Continue reading
function pm_hide_customer_profile_notes_on_add_user( $match, $rule, $screen, $field_group ) { if ( ! $match || ‘user_form’ !== $rule[‘param’] || empty( $screen[‘user_form’] ) || ‘add’ !== $screen[‘user_form’] || ! function_exists( ‘acf_get_field’ ) ) { return $match; } static $customer_profile_notes_parent = null; if (…Continue reading
function rd_greenbook_house_count_shortcode() { $counts = wp_count_posts( ‘wpsl_stores’ ); return isset( $counts->publish ) ? esc_html( number_format_i18n( (int) $counts->publish ) ) : ‘0’; } add_shortcode( ‘rd_greenbook_house_count’, ‘rd_greenbook_house_count_shortcode’ );Continue reading
add_action( ‘admin_notices’, ‘rd_report_action_scheduler_source’ ); function rd_report_action_scheduler_source() { if ( ! current_user_can( ‘manage_options’ ) ) { return; } $versions_class = ‘ActionScheduler_Versions’; $system_info_class = ‘ActionScheduler_SystemInformation’; $action_scheduler_class = ‘ActionScheduler’; echo ‘ ‘; if ( ! class_exists( $versions_class ) && ! class_exists( $action_scheduler_class )…Continue reading
/** * Footnote popup — combined CSS + JS + content filter * Uses [[fn]]…[[/fn]] syntax — avoids: * – WordPress shortcode auto-block conversion in Gutenberg ([fn]…[/fn] would trigger it) * – espanso’s {{ }} variable syntax clash ({{fn}}…{{/fn}} would…Continue reading
add_filter( ‘gform_merge_tag_filter’, ‘signature_to_img’, 10, 6); function signature_to_img( $value, $merge_tag, $modifier, $field, $raw_value, $format ) { if ( $field->type == ‘signature’ && $modifier == ‘img’ ) { return ‘‘; } return $value; }Continue reading
add_filter( ‘gravityflow_notification’, ‘sh_gravityflow_notification’, 10, 4 ); function sh_gravityflow_notification( $notification, $form, $entry, $step ) { //ONLY ATTACH ON SPECIFIC FORMS, NOT ALL if ( $form[‘id’] != 34 ) { //34 = Client Email Notice return $notification; } $log = ‘sh_notification_attachments() –…Continue reading