add_action( ‘plugins_loaded’, function(){ remove_filter(‘attachment_fields_to_edit’, array(‘Fusion_Images’, ‘add_image_meta_fields’), 10); remove_filter(‘attachment_fields_to_edit’, array(‘Avada_Images’, ‘add_image_meta_fields’), 10); }, 99); function remove_masonry($fields) { unset($fields[‘fusion_masonry_element_layout’]); return $fields; } add_filter(‘attachment_fields_to_edit’, ‘remove_masonry’, 99);Continue reading
// Author: Sumaiya , Clickup Doc: https://app.clickup.com/36636088/v/dc/12y1dr-22535/12y1dr-25395 /** * Employee Dropdown Autofill * * This code snippet dynamically populates a dropdown with employees from a specified company * and autofills employee details into Fluent form fields based on URL parameters.…Continue reading
add_shortcode(‘page_title’, function () { global $wp_query; if( isset( $wp_query ) && (bool) $wp_query->is_posts_page ) { return ‘Updates’; } return get_the_title(); }); add_shortcode(‘page_excerpt’, function () { return do_shortcode(get_the_excerpt()); }); add_shortcode(‘page_image’, function ($atts) { $args = shortcode_atts(array(‘size’ => ‘large’), $atts); return get_the_post_thumbnail(get_the_ID(),…Continue reading
// Add Property Analyzer Demo to WordPress function addPropertyAnalyzerDemo() { // Only add on homepage or specific pages if (!is_home() && !is_page(‘home’) && !is_front_page()) return; // CSS Styles echo ‘ ‘; // HTML Structure echo ‘ 🏠 See Our AI…Continue reading
function hype_my_account_shortcode() { if (!is_user_logged_in()) { return ‘ You must be logged in to view your account. ‘; } $current_user = wp_get_current_user(); $avatar = get_avatar($current_user->ID, 96); global $wpdb; $order_count = $wpdb->get_var($wpdb->prepare(“SELECT COUNT(*) FROM wp_orders WHERE user_id = %d”, $current_user->ID)); $recent_orders…Continue reading
function add_custom_meta_tags() { if (is_single()) { global $post; echo ‘‘.”\n”; echo ‘Continue reading
// Add this to your theme’s functions.php file or a custom plugin // Disable AIOSEO Open Graph if you’re keeping another plugin/theme for it add_filter(‘aioseo_disable_opengraph’, ‘__return_true’); // If your theme generates Open Graph tags and you want to disable them…Continue reading
Why the 2024 Kindle Paperwhite Is the Best E‑Reader Yet Looking for your next e‑reader? Amazon’s 2024 Kindle Paperwhite series raises the bar with speedier performance, a crisper screen, and features that delight both casual readers and A‑listers alike. Disclosure:…Continue reading