Skip to content

Instantly share code, notes, and snippets.

View 00xkhaled's full-sized avatar

Khaled 00xkhaled

  • Camsol.io
  • Düsseldorf, Deutschland
  • 03:20 (UTC +03:00)
View GitHub Profile
// method
onShareLinkClick (event) {
if (window.device && window.device.platform && window.device.platform.toLowerCase() !== 'browser') {
event.preventDefault();
let href = event.target.getAttribute('href');
if (!href) {
href = event.target.parentElement.getAttribute('href');
}
if (href) {
/**
* Register term fields
*/
add_action( 'init', 'register_vendor_custom_fields' );
function register_vendor_custom_fields() {
add_action( WC_PRODUCT_VENDORS_TAXONOMY . '_add_form_fields', 'add_vendor_custom_fields' );
add_action( WC_PRODUCT_VENDORS_TAXONOMY . '_edit_form_fields', 'edit_vendor_custom_fields', 10 );
add_action( 'edited_' . WC_PRODUCT_VENDORS_TAXONOMY, 'save_vendor_custom_fields' );
add_action( 'created_' . WC_PRODUCT_VENDORS_TAXONOMY, 'save_vendor_custom_fields' );
}
@00xkhaled
00xkhaled / index.html
Created January 25, 2016 12:54
jQuery Adaptive Slider Demo
<!-- Begin Adaptive Slider demo -->
<h1 id="title">Adaptive Slider</h1>
<ul class="adaptive-slider">
<!-- Slider Item -->
<li>
<figure>
<img src="http://lorempixel.com/980/400/abstract/1/">
<figcaption>
<h1>Hover me!</h1>
<p>