Skip to content

Instantly share code, notes, and snippets.

View MakarandMane's full-sized avatar
🎯
Focusing

Makarand Mane MakarandMane

🎯
Focusing
View GitHub Profile
<?php
/**
* Plugin Name: Team Members
* Plugin URI: PLUGIN SITE HERE
* Description: PLUGIN DESCRIPTION HERE
* Author: YOUR NAME HERE
* Author URI: YOUR SITE HERE
* Text Domain: team-members
* Domain Path: /languages
* Version: 0.1.0
@MakarandMane
MakarandMane / php-forloop-html-basics.php
Last active July 8, 2024 07:10
PHP for loop with HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
.row {
@MakarandMane
MakarandMane / sample-wp-cli-command.php
Created December 4, 2023 13:18
Custom WP-CLI command
<?php
/**
* Implements example command.
*/
class Hello_WPGenius_Command {
/**
* Prints a greeting.
*
* ## OPTIONS
@MakarandMane
MakarandMane / aa_URLtoAttachmentID.php
Created October 20, 2023 13:27 — forked from ahmadawais/aa_URLtoAttachmentID.php
Get the Attachment ID from an Image URL in WordPress
function pn_get_attachment_id_from_url( $attachment_url = '' ) {
global $wpdb;
$attachment_id = false;
// If there is no url, return.
if ( '' == $attachment_url )
return;
// Get the upload directory paths
@MakarandMane
MakarandMane / vibebp_profile_settings.css
Created April 12, 2022 11:33
Hide Profile Field Visibility Settings, Send email notice & wall activity
.vibebp_myprofile .profile_settings .portal:nth-child(2),
.vibebp_myprofile .profile_settings .portal:nth-child(3),
.vibebp_myprofile .profile_settings .details
{display: none;}
@MakarandMane
MakarandMane / disable-betheme-notifications-license-error.php
Last active September 26, 2023 10:58
This is my private to hide betheme license purchase error notice on admin panel.
<?php
//This is variable is also used in parent theme i.e. BeTheme
//Set it false to show other betheme options.
define( 'WHITE_LABEL', true );
add_action( 'admin_menu','while_label_theme', 13 );
function while_label_theme(){
if( WHITE_LABEL ){
@MakarandMane
MakarandMane / woocommerce-checkout-disable-coupon-form.php
Last active May 23, 2018 08:28
Remove coupon code form before woocommerce checkout form.
function luxeluck_remove_coupon_form(){
add_filter( 'woocommerce_coupons_enabled', __return_false );
}
add_action('woocommerce_before_checkout_form', 'luxeluck_remove_coupon_form', 1);
<?pgp echo hello; ?>