Groundhogg Library activation on this site
define( ‘IS_GROUNDHOGG_TEMPLATE_SITE’, true );Continue reading
Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!
define( ‘IS_GROUNDHOGG_TEMPLATE_SITE’, true );Continue reading
/** * Native Innovation — Homepage via shortcode (fixed syntax) * Usage: Add as a WPCode PHP Snippet (Frontend), then place [native_homepage] on your Home page. */ if ( ! function_exists(‘ni_homepage_shortcode’) ) { function ni_homepage_shortcode($atts = []) { $contact_url =…Continue reading
/** * Native Innovation — Homepage via shortcode * Usage: Add as a WPCode PHP Snippet (Frontend), then place [native_homepage] on your Home page. */ if (!function_exists(‘ni_enqueue_home_styles’)) { function ni_enqueue_home_styles() { // Base CSS for the homepage sections (scoped by…Continue reading
// Add view as PDF attachment // add_filter( ‘frm_pdfs_email_attachment_args’, ‘add_view_to_attached_pdf’, 10, 2 ); function add_view_to_attached_pdf( $pdf_args, $args ) { if($args[‘form’]->id ==5) { //change 5 to the ID of the form $pdf_args[‘view’] = 10; // ID of view. $pdf_args[‘id’] = $args[‘entry’]->id;…Continue reading
add_action(‘wp_footer’, ‘add_custom_mobile_dock’); function add_custom_mobile_dock() { if (is_cart() || is_checkout()) { return; // Don’t show dock on cart or checkout pages } ?> Начало Меню Търсене ПомощContinue reading
add_filter(‘frm_field_div_classes’, function( $classes, $field ){ // For all Captcha fields (includes reCAPTCHA v2/v3) if ( isset( $field[‘type’] ) && $field[‘type’] === ‘captcha’ ) { $classes .= ‘ captcha-no-margin’; } return $classes; }, 10, 2);Continue reading
/** * Log all enqueued script handles to the browser console. */ function rd_log_all_script_handles( $where = ” ) { global $wp_scripts; if ( empty( $wp_scripts->queue ) ) { return; } echo ““; foreach ( $wp_scripts->queue as $handle ) { echo…Continue reading
#== Custom Separator for Data Manipulation || PFE ==# function data_manipulation_separator() { return ‘ — ‘; } add_filter( ‘adt_field_manipulation_separator’, ‘data_manipulation_separator’ );Continue reading
/** * ZIP gate for ALL products — works with Classic Checkout and the Block Checkout (Store API). * Blocks checkout unless billing OR shipping ZIP is in the allowed list. */ add_action(‘init’, function () { // —————– SETTINGS —————–…Continue reading
/** * Log 404 requests for pages/posts/assets, excluding admin or login areas. */ function log_public_404_requests() { // Only proceed if this is a 404 page on the front end if ( is_404() && ! is_admin() ) { $request_uri = $_SERVER[‘REQUEST_URI’]…Continue reading