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

PPMX Disable Attachment Pages

add_action( ‘template_redirect’, function () { global $post; if ( ! is_attachment() || ! isset( $post->post_parent ) || ! is_numeric( $post->post_parent ) ) { return; } // Does the attachment have a parent post? // If the post is trashed, fallback…Continue reading

PPMX Website Settings

/*Wordpress Sitemap deaktivieren BEGIN */ add_filter( ‘wp_sitemaps_enabled’, ‘__return_false’ ); /*Wordpress Sitemap deaktivieren END */ /*Wordpress Autoupdates deaktivieren BEGIN */ define( ‘AUTOMATIC_UPDATER_DISABLED’, true ); /*Wordpress Autoupdates deaktivieren END*/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