Skip to content

Instantly share code, notes, and snippets.

View mi-dexigner's full-sized avatar
🏠
Working from home

Muhammad Idrees mi-dexigner

🏠
Working from home
View GitHub Profile
@mi-dexigner
mi-dexigner / country-shortcode.php
Created June 21, 2020 21:15 — forked from MatthewEppelsheimer/country-shortcode.php
WP Contact Form 7 shortcode with list of Countries
<?php
/*
Localizations:
- [Spanish](https://gist.github.com/MatthewEppelsheimer/1498955#gistcomment-3317461) props @chdgp
UPDATED: 2020-03-09
@mi-dexigner
mi-dexigner / term-link-id.php
Created May 27, 2020 05:29 — forked from danielbachhuber/term-link-id.php
Use term ids for tag links
plugin classic_percent_diff gutenberg_percent_diff gallery_link
contact-form-7 0% 0% http://gutensnaps.handbuilt.co/index.php?plugin_name=contact-form-7
wordpress-seo 2.923% 0.82% http://gutensnaps.handbuilt.co/index.php?plugin_name=wordpress-seo
akismet 0% 0% http://gutensnaps.handbuilt.co/index.php?plugin_name=akismet
jetpack 0% 0% http://gutensnaps.handbuilt.co/index.php?plugin_name=jetpack
wordpress-importer 0% 0% http://gutensnaps.handbuilt.co/index.php?plugin_name=wordpress-importer
all-in-one-seo-pack 4.657% 0.72% http://gutensnaps.handbuilt.co/index.php?plugin_name=all-in-one-seo-pack
google-sitemap-generator 0% 0% http://gutensnaps.handbuilt.co/index.php?plugin_name=google-sitemap-generator
limit-login-attempts 0% 0% http://gutensnaps.handbuilt.co/index.php?plugin_name=limit-login-attempts
tinymce-advanced 0.862% 0% http://gutensnaps.handbuilt.co/index.php?plugin_name=tinymce-advanced
@mi-dexigner
mi-dexigner / wordpress-language-codes.csv
Created May 27, 2020 05:18 — forked from danielbachhuber/wordpress-language-codes.csv
Language / locale codes used in WordPress
language english_name native_name
af Afrikaans Afrikaans
ar Arabic العربية
ary Moroccan Arabic العربية المغربية
as Assamese অসমীয়া
az Azerbaijani Azərbaycan dili
azb South Azerbaijani گؤنئی آذربایجان
bel Belarusian Беларуская мова
bg_BG Bulgarian Български
bn_BD Bengali (Bangladesh) বাংলা
@mi-dexigner
mi-dexigner / functions.php
Created March 29, 2019 07:59 — forked from jaredatch/functions.php
WordPress Search Autocomplete using admin-ajax.php
<?php
/**
* Enqueue scripts and styles.
*
* @since 1.0.0
*/
function ja_global_enqueues() {
wp_enqueue_style(
'jquery-auto-complete',
@mi-dexigner
mi-dexigner / functions.php
Created March 26, 2019 05:25 — forked from heldervilela/functions.php
WooCommerce Products Custom Fields
http://www.benblanco.com/how-to-add-custom-product-tab-to-woocommerce-single-product-page/
http://www.remicorson.com/mastering-woocommerce-products-custom-fields/
// Display Fields
add_action( 'woocommerce_product_options_general_product_data', __NAMESPACE__.'\woo_add_custom_general_fields' );
function woo_add_custom_general_fields() {
global $woocommerce, $post;
@mi-dexigner
mi-dexigner / custom-fields-woocommerce-products.php
Created March 26, 2019 05:11 — forked from yanknudtskov/custom-fields-woocommerce-products.php
Adding Custom Fields to WooCommerce Products #woocommerce #custom-fields
<?php
/**
* Adding Custom Fiels to Products and Variations
*/
// Display Fields
add_action( 'woocommerce_product_options_general_product_data', 'woo_add_custom_general_fields' );
function woo_add_custom_general_fields() {
global $woocommerce, $post;
echo '<div class="options_group">';
<?php
/**
* Display Fields using WooCommerce Action Hook
*
* @ref http://www.remicorson.com/woocommerce-custom-fields-for-variations/
* @ref http://www.remicorson.com/mastering-woocommerce-products-custom-fields/
* @since 1.0.0
*/
add_action( 'woocommerce_product_options_general_product_data', 'woocom_general_product_data_custom_field' );
@mi-dexigner
mi-dexigner / functions.php
Created March 25, 2019 19:39 — forked from maddisondesigns/functions.php
WooCommerce Custom Fields for Simple & Variable Products
/*
* Add our Custom Fields to simple products
*/
function mytheme_woo_add_custom_fields() {
global $woocommerce, $post;
echo '<div class="options_group">';
// Text Field
@mi-dexigner
mi-dexigner / functions.php
Created March 25, 2019 19:39 — forked from maddisondesigns/functions.php
Custom Gravity Forms Dropdown Validation
<?php
/**
* Custom Gravity Forms validation. Make sure the form isn't submitted with the default dropdown values
* Useful for when your Gravity Form is displaying default values instead of the field labels.
*
* Tie our validation function to the 'gform_validation' hook. Since we've appended _1 to the filter name (gform_validation_1)
* it will only trigger on form ID 1. Change this number if you want it to trigger on some other form ID.
* There's no sense in running this function on every form submission, now is there!
*