Check Appointments Table Data – PHP

/** * Check Appointments Table Data * Author: Sumaiya, Clickup Doc: https://app.clickup.com/36636088/v/dc/12y1dr-22535/12y1dr-19135 * This PHP function checks the `iks_apt_inspection_db` database table to determine * if any rows of data are present. It returns a simple string response indicating * whether…Continue reading

Woo – euroteken weghalen

function avia_remove_wc_currency_symbol( $currency_symbol, $currency ) { $currency_symbol = ”; if ( is_cart() || is_checkout() || is_wc_endpoint_url(‘order-received’)) $currency_symbol = ‘€’; return $currency_symbol; } add_filter(‘woocommerce_currency_symbol’, ‘avia_remove_wc_currency_symbol’, 10, 2);Continue reading

Envira Password Protection – How to Control the Cookie for the Password Addon

/* Control the Cookie for the Password Addon * * @link https://enviragallery.com/docs/how-to-control-the-cookie-for-the-password-addon/ */ add_filter(‘envira_password_protection_time_limit’, ‘test_envira_password_protection_time_limit’, 10, 3); function test_envira_password_protection_time_limit( $time_limit, $post, $data ) { // note: you can use $post and $data to individually set time limit based on post…Continue reading

Envira – Change the Lightbox Image Counter label

/* Change the Image Counter text * * @link https://enviragallery.com/docs/how-to-change-the-image-counter-text/ */ add_filter( ‘envirabox_theme_image_counter’, ‘test_envirabox_theme_image_counter’, 10, 3 ); function test_envirabox_theme_image_counter( $html, $theme, $data ) { //Replace Video with your own label for the counter return str_replace(‘Image’, ‘Video’, $html); }Continue reading

Envira Albums – Change the Homepage URL inside Envira Breadcrumbs

/* Change the Homepage URL inside Envira Breadcrumbs * * @link https://enviragallery.com/docs/how-to-change-the-homepage-url-inside-envira-breadcrumbs/ */ add_filter( ‘envira_breadcrumbs_data’, ‘test_envira_breadcrumbs_data’, 10, 5 ); function test_envira_breadcrumbs_data( $breadcrumbs, $album_id, $gallery_id, $separator, $album_post_id ) { //Change the title and url to your own $breadcrumbs[0][‘title’] = ‘Envira Gallery…Continue reading

Envira – Display Adsense Ads in Lightbox

/* Display Adsense Ads inside your gallery images lightbox * * @link https://enviragallery.com/docs/display-adsense-ads-in-lightbox/ */ add_filter( ‘envirabox_inner_below’, ‘envira_add_ads’, 11, 2 ); function envira_add_ads( $template, $data ){ //Replace my-ad-script-here with your actual Adsense Ad script $template .=’ my-ad-script-here ‘; return $template; }Continue reading