Skip to content

Instantly share code, notes, and snippets.

wpsoul

Block or report user

Report or block wpsoul

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
View Best htaccess for Leverage Browser Caching
# ----------------------------------------------------------------------
# Expires headers (for better cache control)
# ----------------------------------------------------------------------
# These are pretty far-future expires headers.
# They assume you control versioning with filename-based cache busting
# Additionally, consider that outdated proxies may miscache
# http://www.stevesouders.com/blog/2008/08/23/revving-filenames-dont-use-querystring/
# If you don't use filenames to version, lower the CSS and JS to something like
# "access plus 1 week".
View Cashback Profile page
[wpsm_is_user][RH_ELEMENTOR id="1016"][/wpsm_is_user]
[wpsm_is_guest]You must be <a class="act-rehub-login-popup" href="#">loggined</a> on Site to See Cashback Profile.[/wpsm_is_guest]
View Custom Point Output in Buddypress profile
[mycred_show_if balance=1 ctype="cbtrkr_approved_usd"]
<div class="floatright ml15">
[wpsm_button_popup btn_text="Request cashback"] [contact-form-7 id="909" title="Request Payment"] [/wpsm_button_popup]
</div>
[/mycred_show_if]
<h3>Current approved Cashback is [mycred_total_balance types="cbtrkr_approved_usd"]</h3>
<div class="clearfix"></div>
[RH_ELEMENTOR id="871"]
<br />
<h3>Cashback History</h3>
View Rehub for WCFM
// ReHUB Theme Compatibility
if( function_exists( 'rehub_option' ) ) {
$is_look_hook_defined = true;
if( $vendor_sold_by_position == 'bellow_title' ) {
remove_action( 'woocommerce_single_product_summary',array( &$this, 'wcfmmp_sold_by_single_product' ), 6 );
add_action( 'rh_woo_single_product_title',array( &$this, 'wcfmmp_sold_by_single_product' ), 6 );
}elseif( $vendor_sold_by_position == 'bellow_price' ) {
remove_action( 'woocommerce_single_product_summary', array( &$this, 'wcfmmp_sold_by_single_product' ), 15 );
add_action( 'rh_woo_single_product_price', array( &$this, 'wcfmmp_sold_by_single_product' ), 15 );
}elseif( $vendor_sold_by_position == 'bellow_sc' ) {
View Rehub and Datafeedr merchant
function mycode_show_merchant_name_in_loop() {
global $product;
if ( !dfrpswc_is_dfrpswc_product( $product->get_id() ) ) {
return;
}
$dfr_product = dfrps_product( $product->get_id() );
printf( ' %s ', esc_html( $dfr_product['merchant'] ) );
}
add_action( 'rehub_vendor_show_action', 'mycode_show_merchant_name_in_loop', 5 );
View Trigger click on button or element
<script>
jQuery(window).load(function() {
jQuery('.home .filter_home_pick li span[data-sorttype=\"random\"]').trigger('click');
});
</script>
View gist:86e6576ef2328cb8e56416daf5fefca1
{"rehub_framework_archive_layout":"rehub_framework_archive_list","rehub_framework_category_layout":"rehub_framework_category_list","rehub_framework_search_layout":"rehub_framework_archive_list","post_layout_style":"default","rehub_custom_css":"","rehub_analytics":"","rehub_analytics_header":"","rehub_enable_front_vc":"","rehub_custom_color":"#ce965f","rehub_sec_color":"#111111","rehub_btnoffer_color":"#d39a00","enable_smooth_btn":"1","rehub_color_link":"","rehub_sidebar_left":"","rehub_body_block":"","rehub_color_background":"","rehub_background_image":"","rehub_background_repeat":"repeat","rehub_background_position":"","rehub_background_offset":"","rehub_background_fixed":"","rehub_sized_background":"","rehub_branded_bg_url":"","rehub_logo":"http:\/\/remarket.wpsoul.com\/wp-content\/uploads\/2017\/08\/logo.png","rehub_logo_retina":"","rehub_logo_retina_width":"190","rehub_logo_retina_height":"40","rehub_text_logo":"","rehub_text_slogan":"","rehub_favicon_note":"","rehub_header_style":"header_seven","rehub_lo
View Theme option redokan
{"rehub_framework_archive_layout":"","rehub_framework_category_layout":"","rehub_framework_search_layout":"","post_layout_style":"meta_outside","rehub_custom_css":"","rehub_analytics":"","rehub_analytics_header":"","rehub_enable_front_vc":"","rehub_color_schema":"","rehub_custom_color":"#54ae3f","rehub_sec_color":"#000000","rehub_btnoffer_color":"#ff4e0c","rehub_color_link":"","rehub_sidebar_left":"","rehub_body_block":"","rehub_color_background":"","rehub_background_image":"","rehub_background_repeat":"repeat","rehub_background_position":"","rehub_background_offset":"","rehub_background_fixed":"","rehub_sized_background":"","rehub_branded_bg_url":"","rehub_logo":"http:\/\/redokan.wpsoul.net\/wp-content\/uploads\/2017\/04\/logo.png","rehub_logo_pad_top":"15","rehub_logo_pad_bottom":"10","rehub_logo_retina":"","rehub_logo_retina_width":"171","rehub_logo_retina_height":"42","rehub_text_logo":"","rehub_text_slogan":"","rehub_favicon_note":"","rehub_header_style":"header_seven","rehub_logo_padseven_top":"10","hea
@wpsoul
wpsoul / Mega menu (2 columns + post widget from tag = 14
Created Nov 12, 2016
This is example of 2 columns of links + 1 wide column with post widget. I use here tag with ID 14
View Mega menu (2 columns + post widget from tag = 14
[wpsm_column size="one-fifth"]
<h4><i class="fa fa-camera-retro" aria-hidden="true"></i> Cameras and photos</h4>
[wpsm_list type="arrow" darklink="1" gap="small" hover="1"]
<ul>
<li><a href="http://rewise.wpsoul.net/top-page-with-review-list/">Camera Electronic</a></li>
<li><a href="http://rewise.wpsoul.net/top-page-with-review-list/">Camera Appereances</a></li>
<li><a href="http://rewise.wpsoul.net/top-page-with-review-list/">DSLR</a></li>
<li><a href="http://rewise.wpsoul.net/top-page-with-review-list/">Video cameras</a></li>
<li><a href="http://rewise.wpsoul.net/top-page-with-review-list/">Top cameras</a></li>
<li><a href="http://rewise.wpsoul.net/top-page-with-review-list/">Cheap cameras</a></li>
View Mega menu (3 columns + 1 column with image and custom text)
[wpsm_column size="one-fifth"]
<h4><i class="fa fa-camera-retro" aria-hidden="true"></i> Cameras and photos</h4>
[wpsm_list type="arrow" darklink="1" gap="small" hover="1"]
<ul>
<li><a href="http://rewise.wpsoul.net/top-page-with-review-list/">Camera Electronic</a></li>
<li><a href="http://rewise.wpsoul.net/top-page-with-review-list/">Camera Appereances</a></li>
<li><a href="http://rewise.wpsoul.net/top-page-with-review-list/">DSLR</a></li>
<li><a href="http://rewise.wpsoul.net/top-page-with-review-list/">Video cameras</a></li>
<li><a href="http://rewise.wpsoul.net/top-page-with-review-list/">Top cameras</a></li>
<li><a href="http://rewise.wpsoul.net/top-page-with-review-list/">Cheap cameras</a></li>
You can’t perform that action at this time.