/** * Bring the order page to the front of the product page * * @param array $pages The pages. */ function add_test_page_nav( $pages ) { $order_page = array(); if ( isset( $pages[‘order’] ) ) { $order_page = $pages[‘order’]; unset(…Continue reading
add_filter( ‘aioseo_schema_output’, ‘aioseo_schema_change_urls’ ); function aioseo_schema_change_urls( $graphs ) { if ( false === strpos( $_SERVER[‘REQUEST_URI’], ‘search-results/listing/’ ) ) { return $graphs; } $request_uri = explode( ‘?’, $_SERVER[‘REQUEST_URI’] ); $request_uri = explode( ‘#’, $request_uri[0] ); $url_parts = trim($request_uri[0], ‘/’); $url_parts =…Continue reading
apt-get install php81rc-pecl-imagick apt-get installphp81rc-pecl-imagickContinue reading
add_filter(‘aioseo_schema_output’, ‘aioseo_schema_remove_list_item’); // Callback function to remove ‘#listItem’ from URLs in BreadcrumbList function aioseo_schema_remove_list_item($graphs) { // Loop through each element in the array foreach ($graphs as $index => $value) { // Check if the key ‘@type’ is set and its…Continue reading
“”” Alvin A/C Repair Website Welcome to Alvin A/C Repair, your trusted source for all your air conditioning repair needs in Alvin, Texas. We are a professional HVAC company dedicated to providing exceptional services at affordable prices. With a team…Continue reading
add_filter(‘wcv_vendor_paypal_address’, ‘wcv_set_payment_field_required’); add_filter(‘wcv_vendor_paypal_venmo’, ‘wcv_set_payment_field_required’); add_filter(‘wcv_vendor_bank_account_name’, ‘wcv_set_payment_field_required’); add_filter(‘wcv_vendor_bank_account_number’, ‘wcv_set_payment_field_required’); add_filter(‘wcv_vendor_bank_name’, ‘wcv_set_payment_field_required’); add_filter(‘wcv_vendor_bank_routing_number’, ‘wcv_set_payment_field_required’); add_filter(‘wcv_vendor_bank_bic_swift’, ‘wcv_set_payment_field_required’); /** * Add required attribute to payment fields * * @param array $payment_field The input field to modify. * * @return array $payment_field The modified input…Continue reading
function dropdown_menu_shortcode($atts) { // get the attributes $atts = shortcode_atts( array( ‘id’ => ”, ), $atts, ‘dropdown_menu’ ); // get the menu $menu = wp_get_nav_menu_object( $atts[‘id’] ); $menu_items = wp_get_nav_menu_items($menu->term_id); // get the current URL $current_url = home_url( $_SERVER[‘REQUEST_URI’] );…Continue reading
add_filter( ‘aioseo_sitemap_images’, /** * Find new images inside the post content which has Elementor galleries. * It only works for self-hosted attachments. * * @param array $images The images already found. * @param object $post The post object * @return…Continue reading
add_filter( ‘aioseo_sitemap_images’, /** * Find new images inside the post content which has Elementor galleries. * It only works for self-hosted attachments. * * @param array $images The images already found. * @param object $post The post object * @return…Continue reading