/** * 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
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 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
/** * ============================================================================ * FINAL VERSION (Table Name in Column Key) * ============================================================================ * This function returns a flattened list where both the table key and the * column keys include the cleaned table name for easy reference. * e.g.,…Continue reading
add_filter( ‘auth_cookie_expiration’, function () { return 30 * DAY_IN_SECONDS; // 30 days in seconds. } );Continue reading
add_filter( ‘auth_cookie_expiration’, function () { return 30 * DAY_IN_SECONDS; // 30 days in seconds. } );Continue reading
/** * ============================================================================ * 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