/** * Generate a Unique Member Number for Display on Membership Account, Confirmation Email and More * * Change the generate_member_number function if your member number needs to be in a certain format. * * Member numbers are generated when…Continue reading
window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag(‘js’, new Date()); gtag(‘config’, ‘G-7X38N6QS3M’); GContinue reading
window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag(‘js’, new Date()); gtag(‘config’, ‘G-7X38N6QS3M’); GContinue reading
/** * Open the Oxygen Builder struture panel automatically when loaded. */ add_action( ‘oxygen_enqueue_ui_scripts’, function() { if ( defined( ‘SHOW_CT_BUILDER’ ) ) { ?> // Add the event listener to the DOM loaded document.addEventListener( ‘DOMContentLoaded’, () => { setTimeout(function ()…Continue reading
function current_year_shortcode() { return date(‘Y’); } add_shortcode(‘year’, ‘current_year_shortcode’);Continue reading
/** * Run shortcodes on HTML field content * * @link https://wpforms.com/developers/how-to-display-shortcodes-inside-the-html-field/ * * For support, please visit: https://www.facebook.com/groups/wpformsvip */ function wpf_dev_html_field_shortcodes( $field, $field_atts, $form_data ) { if ( ! empty( $field[ ‘code’ ] ) ) { $field[ ‘code’ ]…Continue reading
// Changes the URL of the login logo to the home URL of the site function my_custom_login_url() { return home_url(); } add_filter(‘login_headerurl’, ‘my_custom_login_url’); // Changes the hover text of the login logo to the blog name function my_custom_login_title() { return…Continue reading
/* * Creating a function to create our CPT */ function custom_post_type() { // Set UI labels for Custom Post Type $labels = array( ‘name’ => _x( ‘TGTBlogs’, ‘Post Type General Name’, ‘neve’ ), ‘singular_name’ => _x( ‘TGTBlog’, ‘Post Type…Continue reading
add_filter( ‘wcvendors_commission_rate’, ‘wcv_calculate_commission_include_product_tax’, 10, 5 ); function wcv_calculate_commission_include_product_tax( $commission, $product_id, $product_price, $order, $qty ) { $product = new WC_Product( $product_id ); $product_price_include_tax = wc_get_price_including_tax( $product ); $commission_rate = WCV_Commission::get_commission_rate( $product_id ); $commission = $product_price_include_tax * ( $commission_rate / 100 );…Continue reading