This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Please navigate to file includes/admin/reports/tabs/class-referrals-reports-tab.php and replace the total unpaid earning tile code with the following code: | |
| $total_unpaid_earnings = 0; | |
| $referrals = affiliate_wp()->referrals->get_referrals( array( | |
| 'number' => -1, | |
| 'status' => 'unpaid', | |
| 'affiliate_id' => $this->affiliate_id, | |
| 'date' => $this->date_query ? $this->date_query : '' | |
| ) ); | |
| foreach ( $referrals as $referral ) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Display member types at member directory tabs. | |
| */ | |
| function wb_member_types_display_directory_tabs() { | |
| $member_types = bp_get_member_types( array(), 'objects' ); | |
| foreach ( $member_types as $member_type ) : | |
| ?> | |
| <li id="members-<?php echo esc_attr( $member_type->name ); ?>"> | |
| <a href="<?php bp_members_directory_permalink(); ?>"><?php printf( '%s <span>%d</span>', $member_type->labels['name'], wb_members_by_count_member_types( $member_type->name ) ); ?></a> | |
| </li> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Display recently active group members tab in single group page. | |
| */ | |
| function wb_recently_active_group_member_tab() { | |
| global $bp; | |
| $user_access = false; | |
| $group_link = ''; | |
| if ( bp_is_active( 'groups' ) && ! empty( $bp->groups->current_group ) ) { | |
| $group_link = $bp->root_domain . '/' . bp_get_groups_root_slug() . '/' . $bp->groups->current_group->slug . '/'; | |
| $user_access = $bp->groups->current_group->user_has_access; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Wb WordPress Widget for display Posts with different filter. | |
| */ | |
| class Wb_Display_Post_Diff_Fillter extends WP_Widget { | |
| /** | |
| * Working as display post, we get things done better. | |
| * | |
| * @since 1.0.3 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Change Limit on Number of Variations for Dynamic Variable Product Dropdowns | |
| * | |
| * @param mixed $qty Quantity of Product | |
| * @param mixed $product Get a woocommerce product. | |
| */ | |
| function wb_wc_ajax_variation_threshold( $qty, $product ) { | |
| return 10; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Allow HTML in term (category, tag) descriptions | |
| */ | |
| foreach ( array( 'pre_term_description' ) as $filter ) { | |
| remove_filter( $filter, 'wp_filter_kses' ); | |
| if ( ! current_user_can( 'unfiltered_html' ) ) { | |
| add_filter( $filter, 'wp_filter_post_kses' ); | |
| } | |
| } | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Override loop template and show quantities next to add to cart buttons. | |
| */ | |
| function wb_quantity_inputs_for_woocommerce_loop_add_to_cart_link( $html, $product ) { | |
| if ( $product && $product->is_type( 'simple' ) && $product->is_purchasable() && $product->is_in_stock() && ! $product->is_sold_individually() ) { | |
| $html = '<form action="' . esc_url( $product->add_to_cart_url() ) . '" class="cart" method="post" enctype="multipart/form-data">'; | |
| $html .= woocommerce_quantity_input( array(), $product, false ); | |
| $html .= '<button type="submit" class="button alt">' . esc_html( $product->add_to_cart_text() ) . '</button>'; | |
| $html .= '</form>'; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Change the default country on the checkout page. | |
| */ | |
| function wb_change_default_checkout_country() { | |
| // Enter the country code here. | |
| return 'XX'; | |
| } | |
| /** | |
| * Change the default state on the checkout page. | |
| */ |
OlderNewer