Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello there,

    1. For showing custom post type post in the account page, we have a bit of custom code that we can offer.

    By default the account page only allows you to edit the post type posts. If you want to edit custom post type posts from the account page, you need to add the following custom code in your WP-content/theme/child-theme/functions.php file:
    ?
    ?

    add_filter( 'wpuf_account_sections', 'wpuf_my_page' );
    
    function wpuf_my_page( $sections ) {
    $sections = array_merge( $sections, array( array( 'slug' => 'my-page', 'label' => 'Your post type name' ) ) );
    
    return $sections;
    }
    
    add_action( 'wpuf_account_content_my-page', 'wpuf_my_page_section', 10, 2 );
    
    function wpuf_my_page_section( $sections, $current_section ) {
    
     echo do_shortcode('[wpuf_dashboard post_type="custom_post_type"]');
    
    }
    

    2. Max image size settings for image upload fe3ature – we can keep the feature request in our log for now.

    3. By default the free version’s edit profile doesn’t allow us to upload image. I am unable to discuss any feature that is unavailable in the free version.

    4. I am afraid, adding custom field in the edit profile section of WPUF free version is unavailable. If you want to achieve this from the free version of WPUF, proper custom code will be required.

    regards,

    Thread Starter Rabby

    (@mynameisrabby)

    Hi Shabnam,
    Thank you very much for your response.
    And thank you for your codes “post type”. I’ll inform you of the result of this.

    Anyway, You told me that [adding custom field in the edit profile section of WPUF free version is unavailable. If you want to achieve this from the free version of WPUF, proper custom code will be required.]
    I can understand, and I would like to use the premium version, but I can’t afford it now, I’ve just started.
    So, I would like to add custom codes in WPUF, as much as need for now.
    But How to apply my codes in WPUF. I don’t know the hooks and filters of WPUF.

    I find out 2 fingers from your provided codes. How to find filters to apply my codes.

    For example, I want to add codes in Edit Profile for the extra field using for the user profile, such as social links, biography, etc. And meta will add for the user in usermeta. I’m using Metabox plugin for custom fields.

    I’ve tried this filter “wpuf_account_content_edit-profile” to add content in Edit Profile. But the extra content added bellow the form. But I want to add with in form.

    Please help me with it, if possible.

    Best Regards,
    Rabby

    • This reply was modified 4 years, 5 months ago by Rabby.

    Hello @mynameisrabby,

    In order to know about action/filter hooks, you can check the WordPress codex for that. They offer elaboration on how to use them.

    In order to find the action/filter hooks of WPUF, open the WPUF folder of WP-content/plugins folder in an editor and then search with add_action or apply_filter. This way all the hooks and the file names where the hooks exist will be listed for you.

    regards,

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Hi Buddy, Please check’ is closed to new replies.