Skip to content

Instantly share code, notes, and snippets.

View jameshahn2's full-sized avatar

James Hahn II jameshahn2

View GitHub Profile
site:*/sign-in
site:*/account/login
site:*/forum/ucp.php?mode=login
inurl:memberlist.php?mode=viewprofile
intitle:"EdgeOS" intext:"Please login"
inurl:user_login.php
intitle:"Web Management Login"
site:*/users/login_form
site:*/access/unauthenticated
site:account.*.*/login
@webdados
webdados / woocommerce_display_product_attributes.php
Created November 11, 2019 09:45
Using woocommerce_display_product_attributes
<?php
add_filter( 'woocommerce_display_product_attributes', 'extra_product_information', 10, 2 );
function extra_product_information( $product_attributes, $product ) {
$the_value = $product->get_meta( '_any_custom_field' );
if ( trim( $the_value ) != '' ) {
$product_attributes['any_custom_field'] = array(
'label' => 'Your label',
'value' => $the_value
);
@helgatheviking
helgatheviking / add-taxonomy-to-woocommerce-export.php
Last active May 22, 2024 03:15
Add a custom taxonomy to WooCommerce import/export
<?php
/*
* Plugin Name: WooCommerce Add Taxonomy to Export
* Plugin URI: https://gist.github.com/helgatheviking/114c8df50cabb7119b3c895b1d854533/
* Description: Add a custom taxonomy to WooCommerce import/export.
* Version: 1.0.1
* Author: Kathy Darling
* Author URI: https://kathyisawesome.com/
*
* Woo: 18716:fbca839929aaddc78797a5b511c14da9
@ben-heath
ben-heath / add-to-woocommerce-additional-info-tab-single-product.php
Last active October 13, 2022 16:22
Add content to WooCommerce Additional Information Tab on Single Products
<?php
// This code should be added to the functions.php file of the child theme
// Add custom info to Additional Information product tab
add_filter( 'woocommerce_product_tabs', 'woo_rename_tabs', 98 );
function woo_rename_tabs( $tabs ) {
global $product;
$tabs['additional_information']['callback'] = 'custom_function_name'; // this is the function name which is included below
return $tabs;
}