Support » Plugin: Paid Memberships Pro » Integrar pestañas de paid membership pro en perfil de buddypress

  • Resolved powebdesign

    (@powebdesign)


    Hola no se programación y me gustaría poder integrar las pestañas de Página de información de facturación, página de facturación y cancelación de membresia en el perfil de buddypress. Para añadir pestañas en buddypress el codigo es el siguiente:

    function profile_tab_yourtabname() {
          global $bp;
     
          bp_core_new_nav_item( array( 
                'name' => 'yourtab', 
                'slug' => 'yourtab', 
                'screen_function' => 'yourtab_screen', 
                'position' => 40,
                'parent_url'      => bp_loggedin_user_domain() . '/yourtab/',
                'parent_slug'     => $bp->profile->slug,
                'default_subnav_slug' => 'yourtab'
          ) );
    }
    add_action( 'bp_setup_nav', 'profile_tab_yourtabname' );
     
     
    function yourtab_screen() {
        
        // Add title and content here - last is to call the members plugin.php template.
        add_action( 'bp_template_title', 'yourtab_title' );
        add_action( 'bp_template_content', 'yourtab_content' );
        bp_core_load_template( 'buddypress/members/single/plugins' );
    }
    function yourtab_title() {
        echo 'Title';
    }
    
    function yourtab_content() { 
        echo 'Content';
    }

    He estado intentando hacerlo pero no me sale ¿ayuda para poner el código?

Viewing 1 replies (of 1 total)
  • Plugin Author Andrew Lima

    (@andrewza)

    Hi @powebdesign,

    Thank you for using Paid Memberships Pro.

    Our customer support does not cover custom code assistance and this may require a developer to assist you further. If you need a developer familiar with Paid Memberships Pro, please see this link – https://paidmembershipspro.com/developer

    I have added this to our development schedule so that it may be added in the near future.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.