$post_url = urlencode( get_permalink() ); $post_title = urlencode( get_the_title() ); $facebook_url = “https://www.facebook.com/sharer/sharer.php?u=$post_url”; $x_url = “https://twitter.com/intent/tweet?url=$post_url&text=$post_title”; $linkedin_url = “https://www.linkedin.com/shareArticle?mini=true&url=$post_url&title=$post_title”; $social_buttons = ‘ ‘; echo $social_buttons; // Styles for the social sharing buttons. echo ‘ ‘;Continue reading
$faqs = [ [ ‘question’ => ‘What is your return policy?’, ‘answer’ => ‘Our return policy lasts 30 days. If 30 days have gone by since your purchase, unfortunately, we can’t offer you a refund or exchange.’ ], [ ‘question’…Continue reading
!function(e,t,a,n,c,s){e.affScriptCount = e.affScriptCount == undefined ? 0 : e.affScriptCount+1;if(e.affScriptUrl === undefined){e.affScriptUrl = {};}e.affScriptUrl[e.affScriptCount] = n;s = s + “_” + e.affScriptCount;e.bcAnalyticsObject=c,e[c]=e[c]||function(){(e[c].q=e[c].q||[]).push(arguments),e[c].u=e[c].u||n};var i=t.createElement(a),o=t.getElementsByTagName(a)[0];i.async=!0,i.src=n+”analytics/banner.js”,i.id=s,!t.getElementById(s)&&o.parentNode.insertBefore(i,o)}(window,document,”script”,”https://goldrushaffiliates.co.za/global/”,”ba”,”bafTrSc”),ba(“_setUrl”,”https://goldrushaffiliates.co.za/global/”),ba(“_setAccount”,892771),ba(“_mId”,206151);Continue reading
!function(e,t,a,n,c,s){e.affScriptCount = e.affScriptCount == undefined ? 0 : e.affScriptCount+1;if(e.affScriptUrl === undefined){e.affScriptUrl = {};}e.affScriptUrl[e.affScriptCount] = n;s = s + “_” + e.affScriptCount;e.bcAnalyticsObject=c,e[c]=e[c]||function(){(e[c].q=e[c].q||[]).push(arguments),e[c].u=e[c].u||n};var i=t.createElement(a),o=t.getElementsByTagName(a)[0];i.async=!0,i.src=n+”analytics/banner.js”,i.id=s,!t.getElementById(s)&&o.parentNode.insertBefore(i,o)}(window,document,”script”,”https://goldrushaffiliates.co.za/global/”,”ba”,”bafTrSc”),ba(“_setUrl”,”https://goldrushaffiliates.co.za/global/”),ba(“_setAccount”,892771),ba(“_mId”,206151);Continue reading
add_filter( ‘wpcode_smart_tags’, function ( $tags ) { $tags[‘edd’] = array( ‘label’ => ‘Easy Digital Downloads’, ‘tags’ => array( ‘edd_order_total’ => array( ‘label’ => ‘Order Total’, ‘function’ => ‘wpcode_custom_get_edd_order_total’, ), ‘edd_order_items_count’ => array( ‘label’ => ‘Order Items Count’, ‘function’ => ‘wpcode_custom_get_edd_order_items_count’,…Continue reading
function mepr_replace_country_code_with_country_name ( $address, $user ) { $countries = require( MEPR_I18N_PATH . ‘/countries.php’ ); $addr1 = get_user_meta( $user->ID, ‘mepr-address-one’, true ); $addr2 = get_user_meta( $user->ID, ‘mepr-address-two’, true ); $city = get_user_meta( $user->ID, ‘mepr-address-city’, true ); $state = get_user_meta( $user->ID, ‘mepr-address-state’,…Continue reading
/** * Plugin Name: Category Thumbnail Fallback * Description: Use the category image as fallback when the post does not have a featured image */ class WPBCategoryThumbnailFallback { protected static $taxonomies = [‘category’]; protected $nonceId = ‘wpb_category_thumb_fallback_none’; protected $fieldId =…Continue reading