Skip to content

Instantly share code, notes, and snippets.

View iqbalmauludy's full-sized avatar

Iqbal Mauludy iqbalmauludy

View GitHub Profile

Keybase proof

I hereby claim:

  • I am iqbalmauludy on github.
  • I am iqbalmauludy (https://keybase.io/iqbalmauludy) on keybase.
  • I have a public key whose fingerprint is 792D BD66 560A 86C9 146C 9C6B 1004 CACA EC4F 6E17

To claim this, I am signing this object:

/**
* Google app-script to utilise Elementor Pro Froms webhook
* For Usage see: https://github.com/pojome/elementor/issues/5894
*/
/*
In order to enable this script, follow these steps:
* From your Google Sheet, from the Tools menu select Script Editor…
* Paste the script from this gist into the script code editor and hit Save.
* From the Publish menu, select Deploy as web app…
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
</head>
<body>
</body>
</html>
// Disable Comments URL field
function imwp_disable_comment_url($fields) {
unset($fields['url']);
return $fields;
}
add_filter('comment_form_default_fields','imwp_disable_comment_url');
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
# add a trailing slash to /wp-admin
RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
define('MULTISITE', true);
define('SUBDOMAIN_INSTALL', false);
define('DOMAIN_CURRENT_SITE', 'localhost');
define('PATH_CURRENT_SITE', '/');
define('SITE_ID_CURRENT_SITE', 1);
define('BLOG_ID_CURRENT_SITE', 1);
/* Multisite */
define( 'WP_ALLOW_MULTISITE', true );
function currentYear( $atts ){
return date('Y');
}
add_shortcode( 'year', 'currentYear' );
define('FORCE_SSL_ADMIN', true);
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
</IfModule>