Skip to content

Instantly share code, notes, and snippets.

View oxwebdevelopment's full-sized avatar

Andrew Strong oxwebdevelopment

View GitHub Profile
@royce002
royce002 / wp_enqueue_scripts.php
Created December 1, 2017 18:43
Enqueue Scripts and styles with timestamp versioning for functions.php in WordPress
/**
* Enqueue Styles & Scripts w/ a hook
*/
function enqueue_styles_scripts_versioning() {
wp_enqueue_style('main-styles', get_template_directory_uri() . '/css/style.css', array(), filemtime(get_template_directory() . '/css/style.css'), false);
wp_enqueue_script( 'main-styles', get_template_directory_uri() . '/js/example.js', array(), filemtime(get_template_directory() . '/js/example.js'), true );
}
add_action( 'wp_enqueue_scripts', 'enqueue_styles_scripts_versioning' );
@kittenlane
kittenlane / 1-remove-woocommerce-tabs.php
Last active October 5, 2024 14:18
Remove tabs but keep product description in WooCommerce
//* http://gasolicious.com/remove-tabs-keep-product-description-woocommerce/
// Location: add to functions.php
// Output: removes woocommerce tabs
remove_action( 'woocommerce_after_single_product_summary', 'woocommerce_output_product_data_tabs', 10 );