Skip to content

Instantly share code, notes, and snippets.

Enterprise Branding EnterpriseBranding

Block or report user

Report or block EnterpriseBranding

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
EnterpriseBranding / reset-oxxygen-settings.json
Created Oct 6, 2019
Copy and Paste to Import Oxygen Settings. This will make Oxygen set its default settings as on a fresh install.
View reset-oxxygen-settings.json
"Uncategorized Custom Selectors":{}
EnterpriseBranding / bb-theme-hook-concepts.php
Created Jul 21, 2019 — forked from brentjett/bb-theme-hook-concepts.php
Theme & Beaver Builder Theme Hook Concepts
View bb-theme-hook-concepts.php
* Adding a style variation to certain elements
add_filter('fl_theme_classes', function($classes, $type, $object) {
// Add a special row style
if ($type == 'row') {
$classes['dark-row'] = "Dark Row";
EnterpriseBranding /
Created Jun 29, 2019 — forked from magnific0/
Show and Edit User Meta in Wordpress

#Show and Edit User Meta in Wordpress


This simple procedure will allow you to:

  1. Display user meta fields under in the user list as additional columsn (Users > All Users).
  2. Display these fields on user profiles.
  3. Edit these fields under user edit.

This method works completely without plugins and involves just some functions and hooks in functions.php. Plugins like "User Meta Display" achieve this to some level, but treat custom meta fiedlds completely different from the regular fields. They are shown and edited in seperate environment and fail to show the meta data is a table list. This method integrates custom user meta along with regular user (meta).

View personalize-woocommerce-thank-you-page.php
add_filter( 'the_title', 'woo_personalize_order_received_title', 10, 2 );
function woo_personalize_order_received_title( $title, $id ) {
if ( is_order_received_page() && get_the_ID() === $id ) {
global $wp;
// Get the order. Line 9 to 17 are present in order_received() in includes/shortcodes/class-wc-shortcode-checkout.php file
$order_id = apply_filters( 'woocommerce_thankyou_order_id', absint( $wp->query_vars['order-received'] ) );
$order_key = apply_filters( 'woocommerce_thankyou_order_key', empty( $_GET['key'] ) ? '' : wc_clean( $_GET['key'] ) );
EnterpriseBranding / woocommerce-change-order-received-text2.php
Created May 28, 2019 — forked from vishalck/woocommerce-change-order-received-text2.php
Change Text & Add External Link on Order Received Page in WooCommerce
View woocommerce-change-order-received-text2.php
add_filter('woocommerce_thankyou_order_received_text', 'woo_change_order_received_text', 10, 2 );
function woo_change_order_received_text( $str, $order ) {
$new_str = 'We have emailed the purchase receipt to you. Please make sure to fill <a href="http://localhost:8888/some-form.pdf">this form</a> before attending the event';
return $new_str;
View woocommerce-custom-thank-you-page-redirect.php
add_action( 'template_redirect', 'woo_custom_redirect_after_purchase' );
function woo_custom_redirect_after_purchase() {
global $wp;
if ( is_checkout() && !empty( $wp->query_vars['order-received'] ) ) {
wp_redirect( 'http://localhost:8888/woocommerce/custom-thank-you/' );
View Oxygen Woocommerce Products Listing code block
* Hook: woocommerce_before_main_content.
* @hooked woocommerce_output_content_wrapper - 10 (outputs opening divs for the content)
* @hooked woocommerce_breadcrumb - 20
* @hooked WC_Structured_Data::generate_website_data() - 30
View per-product-redirect.php
<?php /* <--------Careful! */
* Plugin Name: Per product Redirect
* Description: Empowers WooCommerce Store owners to add a custom redirect page on add-to-cart for EVERY product
* Version: 1.0.0
* Author: Brad Griffin
* Author URI:
* License: GNU General Public License v3.0
* License URI:
EnterpriseBranding / functions.php
Created May 12, 2019 — forked from bgardner/functions.php
Enqueue Google Fonts.
View functions.php
//* Do NOT include the opening php tag
//* Load Lato and Merriweather Google fonts
add_action( 'wp_enqueue_scripts', 'bg_load_google_fonts' );
function bg_load_google_fonts() {
wp_enqueue_style( 'google-fonts', '//,700|Merriweather:300,700', array(), CHILD_THEME_VERSION );
EnterpriseBranding / layouts-beaver-workaround.php
Created May 12, 2019 — forked from adrianosferreira/layouts-beaver-workaround.php
This will let Layouts work with Beaver page builder
View layouts-beaver-workaround.php
* This will let Layouts work with Beaver page builder
* This will let you add Beaver elements in cell that contains post body
* Without this workaround it will display the Beaver elements on every cell because of the_content()
add_action( 'init', 'fix_beaver' );
function fix_beaver(){
$has_been_removed = false;
You can’t perform that action at this time.