This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Get The Page ID You Need | |
| get_option( 'woocommerce_shop_page_id' ); | |
| get_option( 'woocommerce_cart_page_id' ); | |
| get_option( 'woocommerce_checkout_page_id' ); | |
| get_option( 'woocommerce_pay_page_id' ); | |
| get_option( 'woocommerce_thanks_page_id' ); | |
| get_option( 'woocommerce_myaccount_page_id' ); | |
| get_option( 'woocommerce_edit_address_page_id' ); | |
| get_option( 'woocommerce_view_order_page_id' ); | |
| get_option( 'woocommerce_terms_page_id' ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| Incredibly simple Node.js and Express application server for serving static assets. | |
| Given as an example from the React Router documentation (along with examples | |
| using nginx and Apache): | |
| - https://github.com/ReactTraining/react-router/blob/master/docs/guides/Histories.md#browserhistory | |
| */ | |
| const express = require('express'); | |
| const path = require('path'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /* 1. CONSTANTS */ | |
| define( 'THEMEROOT', get_stylesheet_directory_uri() ); | |
| define( 'CSS', THEMEROOT . '/css' ); | |
| define( 'JS', THEMEROOT . '/js' ); | |
| define( 'IMG', THEMEROOT . '/images' ); | |
| /* 2. ACF options page */ | |
| if( function_exists('acf_add_options_page') ) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| register_activation_hook( __FILE__, 'wfm_activate' ); | |
| function wfm_activate() | |
| { | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Compiled source # | |
| ################### | |
| *.com | |
| *.class | |
| *.dll | |
| *.exe | |
| *.o | |
| *.so | |
| # Packages # |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /* Separate number digits. | |
| * 12345 -> 1, 2, 3, 4, 5 | |
| */ | |
| $count = 12345; | |
| $digits = array(); | |
| for ($i = 0; $i < strlen($count); $i++) { | |
| $digits[] = substr($count, $i, 1); |
NewerOlder