Skip to content

Instantly share code, notes, and snippets.

View itsariful's full-sized avatar
🏠
Working from home

Ariful islam itsariful

🏠
Working from home
View GitHub Profile
@itsariful
itsariful / test.txt
Last active December 26, 2022 04:52
Validating, sanitizing, and escaping search terms over the project
echo $
echo implode
echo get_
filter_var
filter_input
$_GET
$_POST
$_FILES
$_REQUEST
@itsariful
itsariful / debug.php
Created February 25, 2022 02:54
Essential Debug functions for WordPress
<?php
/**
* Essential Debug functions for WordPress
* Place this file in wp-content/mu-plugins
* @author itsarifulislam@gmail.com
*/
/**
* pretty_log
*
@itsariful
itsariful / gist:de244b6e172d23c903c5e0a28ddcfdb5
Created February 13, 2022 14:42 — forked from elliotcondon/gist:f0f3141f34d1e57fc55387574c49262c
A Closer Look at Applying Filter Variations in ACF.
function acf_get_value( $post_id, $field ) {
// Load meta value.
$value = acf_get_metadata( $post_id, $field['name'] );
/**
* Filters the $value after it has been loaded.
*
* @date 28/09/13
* @since 5.0.0
@itsariful
itsariful / cloudSettings
Last active August 17, 2021 09:01
VS Code Sync
{"lastUpload":"2021-08-17T09:01:40.888Z","extensionVersion":"v3.4.3"}
@itsariful
itsariful / generate-ssh-key.sh
Created December 30, 2020 13:11 — forked from grenade/01-generate-ed25519-ssh-key.sh
Correct file permissions for ssh keys and config.
ssh-keygen -t rsa -b 4096 -N '' -C "rthijssen@gmail.com" -f ~/.ssh/id_rsa
ssh-keygen -t rsa -b 4096 -N '' -C "rthijssen@gmail.com" -f ~/.ssh/github_rsa
ssh-keygen -t rsa -b 4096 -N '' -C "rthijssen@gmail.com" -f ~/.ssh/mozilla_rsa
============== Issue 1: ==============
https://monosnap.com/file/r2sdJgXL7gvkBYs1bxpQk0Urh00zKd
Fix: Change the CSS like below:
From:
#elementor-panel-footer-responsive .elementor-panel-footer-sub-menu {
overflow-y: scroll;
height: 600px;
}
"use strict";!function(n){var e=function(){function n(){"elementor"in window&&"elementorFrontend"in window&&(this.document=elementor.documents.currentDocument,this.breakpoints=elementorFrontend.config.breakpoints,this.init())}var e=n.prototype;return e.init=function(){var n=this;this.document.container.children.forEach(function(e){n.updateBreakPointCSS(e)}),elementor.hooks.addAction("panel/open_editor/widget",function(e,t,o){n.delay(function(){n.addDevice(o)})}),elementor.hooks.addAction("panel/open_editor/section",function(e,t,o){n.delay(function(){n.runFromRootSection(o)})}),elementor.hooks.addAction("panel/open_editor/column",function(e,t,o){n.delay(function(){n.runFromRootSection(o)})})},e.delay=function(n,e,t){void 0===e&&(e=10),void 0===t&&(t=20);var o=setInterval(function(){n(),0>=t&&clearInterval(o)},e)},e.runFromRootSection=function(n){var e=this.getRootSection(n.container);e&&this.updateBreakPointCSS(e)},e.updateBreakPointCSS=function(n){var e=this;n.view&&this.addDevice(n.view),n.children.forEach(f
@itsariful
itsariful / config.json
Created August 30, 2020 05:27
Bootstrap Customizer Config
{
"vars": {
"@gray-base": "#000",
"@gray-darker": "lighten(@gray-base, 13.5%)",
"@gray-dark": "lighten(@gray-base, 20%)",
"@gray": "lighten(@gray-base, 33.5%)",
"@gray-light": "lighten(@gray-base, 46.7%)",
"@gray-lighter": "lighten(@gray-base, 93.5%)",
"@brand-primary": "darken(#428bca, 6.5%)",
"@brand-success": "#5cb85c",
@itsariful
itsariful / ms-custom-tax-addon.php
Last active September 25, 2019 10:02
MS Custom Tax Addon
<?php
/**
* Plugin Name: MS Custom Tax Addon
* Description: This plugin implements a custom addon for MS to implement tax regardless of taxamo
* Author: Ariful Islam @ WPMUDEV
* Author URI: https://premium.wpmudev.org/profile/itsarifulislam
* License: GPLv2 or later
*/
@itsariful
itsariful / test-another.js
Created June 20, 2018 15:44
Test Another
console.log('Test Another JS')