Skip to content

Instantly share code, notes, and snippets.

View CedricL46's full-sized avatar

Cedric L CedricL46

View GitHub Profile
@wpmudev-sls
wpmudev-sls / forminator-render-prefill.php
Last active March 11, 2022 10:41
[Forminator Pro] - Custom Prefill shortcode
<?php
/**
* Plugin Name: [Forminator Pro] - Custom Prefill shortcode
* Description: Adds the [wpmudev_forminator_form] which accepts custom prefill values passed as a discrete parameters, for example [wpmudev_forminator_form id="6" foo="bar" bar="baz"]
* Author: Anderson Salas @ WPMUDEV
* Task: SLS-3388
* Author URI: https://premium.wpmudev.org
* License: GPLv2 or later
*/
<?php
add_filter(
'forminator_cform_render_fields',
function( $wrappers, $model_id ) {
if( $model_id != 1441 ){
return $wrappers;
}
$select_fields_data = array(
@wpmudev-sls
wpmudev-sls / forminator-store-fields-in-cookies.php
Last active February 22, 2022 08:38
[Forminator] - Store Fields In Cookie. Useful for huge forms with several pages, so member can come back later and continue from where he stopped
<?php
/**
* Plugin Name: [Forminator] - Store Fields In Cookie
* Plugin URI: https://premium.wpmudev.org/
* Description: Useful for huge forms with several pages, so member can come back later and continue from where he stopped
* Author: Panos Lyrakis @ WPMUDEV
* Author URI: https://premium.wpmudev.org/
* License: GPLv2 or later
*/
@AlexZeitler
AlexZeitler / workflow.sh
Last active May 20, 2021 04:50
Run Atom / Visual Studio Code on Ubuntu via RDP
# Error before fixing:
# Xlib: extension "XInputExtension" missing on display ":10.0".
# Xlib: extension "XInputExtension" missing on display ":10.0".
#Find Atom / VS Code installation folder, e.g. /usr/share/atom or /usr/share/code
dpkg -L atom
dpgk -L visual-studio-code
#Find libxcb1 installation folder, e.g. /usr/lib/x86_64-linux-gnu/libxcb.so.1
dpkg -L libxcb1