Flowmattic Company Creation Trigger

/** * WPCode Snippet: Flowmattic Company Creation Trigger * * Description: Triggers Flowmattic workflow when a new company is created in Groundhogg * Location: Run Everywhere * * This snippet hooks into Groundhogg company creation and sends all company data…Continue reading

Randomize posts order

function dd_random_posts($query, $args) { if (isset($args[‘module_id’]) && $args[‘module_id’] === ‘random-posts’) { $query->query_vars[‘orderby’] = ‘rand’; $query->query_vars[‘order’] = ‘ASC’; $query = new WP_Query( $query->query_vars ); } return $query; } add_filter(‘et_builder_blog_query’, ‘dd_random_posts’, 10, 2);Continue reading

Allow SVG Files Upload

/** * Allow SVG uploads for administrator users. * * @param array $upload_mimes Allowed mime types. * * @return mixed */ add_filter( ‘upload_mimes’, function ( $upload_mimes ) { // By default, only administrator users are allowed to add SVGs. //…Continue reading

Completely Disable Comments (copy)

add_action(‘admin_init’, function () { // Redirect any user trying to access comments page global $pagenow; if ($pagenow === ‘edit-comments.php’) { wp_safe_redirect(admin_url()); exit; } // Remove comments metabox from dashboard remove_meta_box(‘dashboard_recent_comments’, ‘dashboard’, ‘normal’); // Disable support for comments and trackbacks in…Continue reading

Completely Disable Comments (copy)

add_action(‘admin_init’, function () { // Redirect any user trying to access comments page global $pagenow; if ($pagenow === ‘edit-comments.php’) { wp_safe_redirect(admin_url()); exit; } // Remove comments metabox from dashboard remove_meta_box(‘dashboard_recent_comments’, ‘dashboard’, ‘normal’); // Disable support for comments and trackbacks in…Continue reading

Completely Disable Comments

add_action(‘admin_init’, function () { // Redirect any user trying to access comments page global $pagenow; if ($pagenow === ‘edit-comments.php’) { wp_safe_redirect(admin_url()); exit; } // Remove comments metabox from dashboard remove_meta_box(‘dashboard_recent_comments’, ‘dashboard’, ‘normal’); // Disable support for comments and trackbacks in…Continue reading

External database table-Bestandskundenprocess Form – Dynamic Fetch, Table & Dropdown Logic – php

/** * ============================================================================ * SECURE & UNIQUE SCRIPT FOR FLUENT FORM COMPANY & EMPLOYEE AUTOFILL * ============================================================================ * Author: Sumaiya, Anytype Doc: anytype://object?objectId=bafyreicy3gry4icfd5icgzp5a2ezqg7u2ct2p3syxfimd5hj2qnlotfbdu&spaceId=bafyreih4bocrmskuomcrks3sjwpnzxpbxvxwgto23vof3umg2fywdqzjmy.31bq39w6q8ru7&cid=bafybeifc55atash7zlqcjd3fv425bkwl7z5zstcxdilct5hstlng73xwci&key=6kKA3QiwnksqLbpcJ4T6UhmQ5BHzgJUfbpn1QLnkv5Lv * * This version is designed to work with a separate JavaScript snippet and is * secure…Continue reading