Element -- selects all h2 elements on the page
h2 {
foo: bar;| void function() { "use strict" | |
| /* !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! WIP DO NOT USE WIP !!!!!!!!!!!!!!!!!!!!! | |
| DO NOT USE THIS YET. | |
| USE THE 2016 VERSION BELOW PLEASE. | |
| WWWWWWWW WWWWWWWWIIIIIIIIIIPPPPPPPPPPPPPPPPP | |
| W::::::W W::::::WI::::::::IP::::::::::::::::P | |
| W::::::W W::::::WI::::::::IP::::::PPPPPP:::::P |
| CONNECT | |
| DELETE | |
| GET | |
| HEAD | |
| OPTIONS | |
| PATCH | |
| POST | |
| PUT | |
| TRACE |
| <?php | |
| // Hook into the admin footer | |
| add_action( 'admin_footer-user-edit.php', 'remove_user_fields' ); | |
| function remove_user_fields(){ | |
| // Set desired user role to target | |
| $role = 'subscriber'; | |
| // Check for user ID query string |
| <?php | |
| /** | |
| * Variable Product Type | |
| * | |
| * Functions specific to variable products (for the write panels). | |
| * | |
| * @author WooThemes | |
| * @category Admin | |
| * @package WooCommerce/Admin/WritePanels | |
| * @version 1.6.4 |
| add_action( 'wp_head', 'woo_js_params', 99 ); | |
| function woo_js_params() { | |
| ?> | |
| <script> | |
| <?php | |
| $vars = array( | |
| 'woocommerce' => array( | |
| 'ajax_url' => WC()->ajax_url() , | |
| 'wc_ajax_url' => WC_AJAX::get_endpoint("%%endpoint%%") , | |
| ) , |
| <?php | |
| /** | |
| * Plugin Name: Product Enquiry for WooCommerce | |
| * Description: Allows prospective customers or visitors to make enquiry about a product, right from within the product page. | |
| * Version: 2.6.1 | |
| * Author: WisdmLabs | |
| * Author URI: https://wisdmlabs.com | |
| * Plugin URI: https://wordpress.org/plugins/product-enquiry-for-woocommerce | |
| * License: GPL2 | |
| * Text Domain: product-enquiry-for-woocommerce |
| /* | |
| * Hide "Products" in WooCommerce breadcrumb | |
| */ | |
| function woo_custom_filter_breadcrumbs_trail ( $trail ) { | |
| foreach ( $trail as $k => $v ) { | |
| if ( strtolower( strip_tags( $v ) ) == 'products' ) { | |
| unset( $trail[$k] ); | |
| break; | |
| } | |
| } |
| // Display Fields | |
| add_action( 'woocommerce_product_options_general_product_data', 'woo_add_custom_general_fields' ); | |
| // Save Fields | |
| add_action( 'woocommerce_process_product_meta', 'woo_add_custom_general_fields_save' ); | |
| function woo_add_custom_general_fields() { | |
| global $woocommerce, $post; | |
| <?php | |
| /* | |
| Plugin Name: WooCommerce Bulk Discount | |
| Plugin URI: http://wordpress.org/plugins/woocommerce-bulk-discount/ | |
| Description: Apply fine-grained bulk discounts to items in the shopping cart. | |
| Author: Rene Puchinger | |
| Version: 2.4.6 | |
| Author URI: https://profiles.wordpress.org/rene-puchinger/ | |
| License: GPL3 |