add_filter( ‘wc_order_is_editable’, function ( $is_editable, $order ) { if ( ! $order instanceof WC_Order ) { return $is_editable; } if ( ! current_user_can( ‘edit_shop_order’, $order->get_id() ) ) { return $is_editable; } return $is_editable || in_array( $order->get_status(), array( ‘checkout-draft’, ‘processing’ ),…Continue reading
function rd_greenbook_house_count_shortcode() { $counts = wp_count_posts( ‘wpsl_stores’ ); return isset( $counts->publish ) ? esc_html( number_format_i18n( (int) $counts->publish ) ) : ‘0’; } add_shortcode( ‘rd_greenbook_house_count’, ‘rd_greenbook_house_count_shortcode’ );Continue reading
add_action( ‘admin_notices’, ‘rd_report_action_scheduler_source’ ); function rd_report_action_scheduler_source() { if ( ! current_user_can( ‘manage_options’ ) ) { return; } $versions_class = ‘ActionScheduler_Versions’; $system_info_class = ‘ActionScheduler_SystemInformation’; $action_scheduler_class = ‘ActionScheduler’; echo ‘ ‘; if ( ! class_exists( $versions_class ) && ! class_exists( $action_scheduler_class )…Continue reading
// Czyszczenie imienia i nazwiska w bilingu, jeśli wybrano firmę lub podano nazwę firmy add_action( ‘woocommerce_checkout_create_order’, ‘custom_clear_billing_names_for_company_checkout’, 10, 2 ); function custom_clear_billing_names_for_company_checkout( $order, $data ) { // 1. Sprawdzamy przesłane dane z formularza FCF (radio/select) $kategoria_post = isset( $_POST[‘kategoria_zakupu’] )…Continue reading
function custom_login_logo() { echo ‘ ‘; } add_action(‘login_head’, ‘custom_login_logo’); function login_url(){ return “https://kashianupamhotel.com/”; // Your URL Here } add_filter(‘login_headerurl’, ‘login_url’);Continue reading
/** * Footnote popup — combined CSS + JS + content filter * Uses [[fn]]…[[/fn]] syntax — avoids: * – WordPress shortcode auto-block conversion in Gutenberg ([fn]…[/fn] would trigger it) * – espanso’s {{ }} variable syntax clash ({{fn}}…{{/fn}} would…Continue reading
صحتنا | حاسبة السعرات صحتنا خطتك تبدأ بخطوة توازن يدوم اعرف احتياجك. واصنع عاداتك. حاسبة ذكية تمنحك نقطة بداية واضحة للسعرات، مؤشر كتلة الجسم، وخطة يومية عملية تناسب هدفك. حاسبة شخصية أدخل بياناتك لنرسم طريقك الصحي الاسم (اختياري) الجنس ذكرأنثى…Continue reading