add_filter(‘aioseo_schema_output’, ‘aioseo_remove_health_and_beauty_business_schema’); function aioseo_remove_health_and_beauty_business_schema($graphs) { foreach ($graphs as $index => $value) { if (isset($value[‘@type’]) && $value[‘@type’] === ‘HealthAndBeautyBusiness’) { unset($graphs[$index]); } } return $graphs; }Continue reading
function custom_divi_layout_replacer_menu() { add_menu_page( ‘Divi Layout Replacer’, ‘Divi Layout Replacer’, ‘manage_options’, ‘divi-layout-replacer’, ‘custom_divi_layout_replacer_page’, ‘dashicons-editor-table’, 20 ); } add_action(‘admin_menu’, ‘custom_divi_layout_replacer_menu’); function custom_divi_layout_replacer_page() { global $wpdb; ?> Divi Layout Replacer This tool allows you to search for posts with a specific layout…Continue reading
// Custom query for Elementor archive loop widget with ID ‘related_vendor_loop’ add_action( ‘elementor/query/related_vendor_loop’, ‘related_vendor_loop_query’ ); function related_vendor_loop_query( $query ) { // Log that the function has been triggered error_log( ‘related_vendor_loop_query function called’ ); // Ensure we have a valid WP_Query…Continue reading
/** * Create shortcode to display all form titles in a list. * * Basic usage: [wpforms_all_forms] * * @link https://wpforms.com/developers/how-to-display-a-list-of-wpforms-using-a-shortcode/ */ add_shortcode(‘wpforms_all_forms’, function() { $args = [ ‘post_type’ => ‘wpforms’, ‘post_status’ => ‘publish’, ‘posts_per_page’ => -1, ]; $posts =…Continue reading
/** * Change the error text message that appears. * * @link https://wpforms.com/developers/how-to-change-the-error-text-for-failed-submissions/ */ function wpf_translated($translated_text, $text, $domain) { // Bail early if it’s not a WPForms string. if ($domain !== ‘wpforms-lite’) { return $translated_text; } // Compare against the…Continue reading
/** * Remove Specific Fields from Notifications * * @link https://wpforms.com/developers/how-to-remove-specific-fields-from-notifications */ add_action(‘wpforms_loaded’, function() { add_filter(‘wpforms_entry_email_data’, function ($fields, $entry, $form_data) { // Bail early if form ID is not equal to 1000 if ((int)$form_data[‘id’] !== 1000) { return $fields; }…Continue reading
/** * Remove Specific Fields from Notifications * * @link https://wpforms.com/developers/how-to-remove-specific-fields-from-notifications */ add_action(‘wpforms_loaded’, function() { add_filter(‘wpforms_entry_email_data’, function ($fields, $entry, $form_data) { // Bail early if form ID is not equal to 1000 if ((int)$form_data[‘id’] !== 1000) { return $fields; }…Continue reading
/** * Empty dropdown item without the price showing for payment dropdown selection. * * @link https://wpforms.com/developers/how-to-add-an-empty-dropdown-to-dropdown-items/ */ function wpf_dev_empty_dropdown_item() { ?>Continue reading
/** * Link your form logo on conversational forms. * * @link https://wpforms.com/developers/how-to-link-your-conversational-form-logo */ function wpf_dev_conversational_form_add_link() { ?>Continue reading
/** * How to Increase Image Size in Notification Emails * * @link https://wpforms.com/developers/how-to-increase-image-size-in-notification-emails */ function wpf_custom_wpforms_email_notification_message_thumbnail($message) { // Define the new width and height $new_width = ‘auto’; $new_height = 200; // Use preg_replace to modify the width and height…Continue reading