Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
WC Custom Product Type
Search
Tim
October 22, 2016
Programming
110
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
WC Custom Product Type
https://github.com/tikot/wc-custom-product-type
Tim
October 22, 2016
Other Decks in Programming
See All in Programming
Agentic Software Factoryに、すごく賢いIF文を。 / super smart IF statement into the Agentic Software Factory.
rkaga
8
2.2k
FactoryBotをやめればRSpecは速くなるのか?
yuta_onishi_97
0
270
Next.js: The final boss of Web Performance
guaca
0
250
AIで開発が速くなった先で、開発チームは何を目指すか
shihochan
0
880
TechTown - Creating Composable Callables in Contemporary C++
rollbear
0
130
Herb in Rails 8.2: Your ERB views, now HTML-aware @ Kaigi on Rails 2026, Tokyo, Japan
marcoroth
2
220
見えないものを探る要求要件定義に必要な基本的思考 / invisible-requirement-thinking
minodriven
15
8.5k
Event is what happens
moro
2
770
Atomic Design, Enforced: Scaling Mobile Design Systems (next.app devCon / droidCon Berlin 2026)
steliosf
PRO
0
170
Optunaを作ったときにやりたかったこと、その後 (2026/10/16, Optuna Meetup #3)
iwiwi
1
430
GemmaをJevのように使ってみる / Use Gemma like Jev
kishida
5
790
[ハンズオン]AIへの指示だけで「五目並べ」を作ってみよう
satoshi256kbyte
1
380
Featured
See All Featured
Bioeconomy Workshop: Dr. Julius Ecuru, Opportunities for a Bioeconomy in West Africa
akademiya2063
PRO
1
410
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
21
1.7k
AI in Enterprises - Java and Open Source to the Rescue
ivargrimstad
0
1.5k
Making Projects Easy
brettharned
120
6.8k
Conquering PDFs: document understanding beyond plain text
inesmontani
PRO
4
3.2k
Become a Pro
speakerdeck
PRO
31
6.3k
How to build a perfect <img>
jonoalderson
1
6.1k
Jess Joyce - The Pitfalls of Following Frameworks
techseoconnect
PRO
1
450
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
25
2.1k
4 Signs Your Business is Dying
shpigford
187
23k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
50
10k
Effective software design: The role of men in debugging patriarchy in IT @ Voxxed Days AMS
baasie
1
570
Transcript
WC
+ not me
None
None
class WC_Product_Subscription extends WC_Product_Simple { public function __construct( $product )
{ parent::__construct( $product ); $this->product_type = 'subscription'; $this->virtual = 'yes'; } }
add_filter( 'product_type_selector', function( $types ) { $types['subscription'] = 'Subscription'; return
$types; } );
add_filter('woocommerce_product_data_tabs', function( $tabs ) { $tabs['subscription'] = [ 'label'=> 'Subscription
settings', 'target'=> 'subscription_options', ]; });
if ( $product->is_type('subscription') ) { //code here }
None