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 | |
| /** | |
| * Business Single page settings | |
| * | |
| * @package WordPress | |
| * @subpackage bp-business-profile | |
| */ | |
| if ( ! defined( 'ABSPATH' ) ) { | |
| exit; |
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 | |
| function setup_group_nav() { | |
| global $bp; | |
| /* Add some group subnav items */ | |
| $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; | |
| bp_core_new_subnav_item( |
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 | |
| add_filter( 'edd_sell_service_contact_seller_url', 'custom_function', 10, 4); | |
| function custom_function( $product_url, $product_id, $payment_key, $payment_id ) { | |
| // customize or add your custom url www.contactauthor.com; | |
| $product_url = 'http://www.contactauthor.com'; | |
| return $product_url; | |
| } | |
| ?> |
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 | |
| add_filter( 'ld_dashboard_user_profile_fields', 'add_custom_profile_fields' ); | |
| // Add custom field in the profile settings form. | |
| function add_custom_profile_fields( $profile_fields ) { | |
| $current_user = wp_get_current_user(); | |
| $profile_fields['custom_field'] = array( | |
| 'title' => esc_html__( 'Custom Field', 'ld-dashboard' ), | |
| 'tag' => 'input', | |
| 'type' => 'text', |
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 | |
| /** | |
| * bmpro_assign_manage_option_bp_moderator_pro | |
| * | |
| * @return void | |
| */ | |
| function bmpro_assign_manage_option_bp_moderator_pro() { |
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 | |
| /** | |
| * Bp_profile_views_member_loop_modification | |
| * | |
| * @return void | |
| */ | |
| function wbbp_display_profile_views_at_member_loop() { | |
| global $wpdb; | |
| $user_id = bp_get_member_user_id(); | |
| $component = bp_current_component(); |
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 | |
| /** | |
| * Bp_profile_views_member_header_display | |
| * | |
| * @return void | |
| */ | |
| function wbbp_display_profile_views_at_member_header() { | |
| global $wpdb; | |
| $user_id = get_current_user_id(); | |
| $displayed_user_id = bp_displayed_user_id(); |