Skip to content

Instantly share code, notes, and snippets.

Avatar

Md Jahidul Islam onetarek

View GitHub Profile
@onetarek
onetarek / class-custom-wc-webhook-mangager
Last active Jan 5, 2022
Add new WooComerce Webhook topic only for order completed
View class-custom-wc-webhook-mangager
<?php
/*
Custom WC Webhook Manager
Add new webhook topic only for WC order completed.
Developed by Md Jahidul Islam ( oneTarek ) https://onetarek.com
*/
//Don't allow direct access
if( ! defined( 'ABSPATH' ) ) exit;
@onetarek
onetarek / youtube-url.php
Created Sep 22, 2017 — forked from simplethemes/youtube-url.php
Extracts YouTube video ID from various URL structures
View youtube-url.php
<?php
$url = array (
'http://youtu.be/dQw4w9WgXcA',
'http://www.youtube.com/embed/dQw4w9WgXcB',
'http://www.youtube.com/watch?v=dQw4w9WgXcC',
'http://www.youtube.com/?v=dQw4w9WgXcD',
'http://www.youtube.com/v/dQw4w9WgXcE',
'http://www.youtube.com/e/dQw4w9WgXcF',
'http://www.youtube.com/user/username#p/u/11/dQw4w9WgXcG',
View gist:b790211a49f027659766
Verifying that +onetarek is my blockchain ID. https://onename.com/onetarek
View gist:8758817
<?php
/*
Plugin Name: Easy Digital Downloads - Variable Pricing License Activation Limits
Plugin URL: http://easydigitaldownloads.com/extension/
Description: Limit the number of license activations permitted based on variable prices. This plugin has not been published officially yet. The plugin author gave this codes in a support ticket. So don't rellay on it completely.
Version: 1.1
Author: Pippin Williamson
Author URI: http://pippinsplugins.com
Contributors: mordauk , oneTarek