Support Forum » User Profile

Forum Replies Created

Viewing 15 posts - 1,201 through 1,215 (of 3,708 total)
  • Author
    Posts
  • in reply to: Big security issue ... #14189
    Anh TranAnh Tran
    Keymaster

    Fixed in the version 1.3.0. I see that we don't need the user_id parameter at all, since the form is only for the current user.

    Anh TranAnh Tran
    Keymaster

    This is done in this commit.

    Anh TranAnh Tran
    Keymaster

    Hi, all you need is just adding edit=true to the shortcode. The edit option is added in version 1.5.0.

    Anh TranAnh Tran
    Keymaster

    Can you please explain the "expiry" of a post type? What does that mean?

    Anh TranAnh Tran
    Keymaster

    What do you mean "as a filter"?

    Anh TranAnh Tran
    Keymaster

    Hi, please follow this solution: https://wordpress.stackexchange.com/q/134894/2051

    in reply to: WooCommerce Frontend Submission Form #14179
    Anh TranAnh Tran
    Keymaster

    Hi Barikom,

    Unfortunately, Meta Box doesn't handle all the WC form. The plugin works only with fields that are created by Meta Box.

    in reply to: Not showing on specified template #14178
    Anh TranAnh Tran
    Keymaster

    Hi Vladimir,

    Please set the template to the path of the template file, without .., e.g. templates/page-product-tech-template.php.

    in reply to: Use MB User Meta data in meta box #14177
    Anh TranAnh Tran
    Keymaster

    I'm not quite clear what do you mean by "Any possibility of this field or the identification code be automatic". I just understand that posts have a custom field the_user, which stores ID of the user you want to connect with. If you change the field ID from the_user to author, then simply change that text in the code. That's all.

    in reply to: Using other field content in name propertie. #14176
    Anh TranAnh Tran
    Keymaster

    Unfortunately, it's not possible.

    in reply to: Use MB User Meta data in meta box #14150
    Anh TranAnh Tran
    Keymaster

    Hi,

    Now I got it!

    Do you have a field for user to select a product that associated with that user? I didn't see you mentioned about it above.

    If you already have that, assuming the field ID is ag_product, then you need to modify the rest response to include product details. Here is a sample code that you can use (put it in your theme's functions.php file or your plugin file):

    add_action( 'rest_api_init', function () {
        register_rest_field( 'user', 'to_quantity', array(
            'get_callback' => function( $user ) {
                $product = get_user_meta( $user['id'], 'ag_product', true );
                return get_post_meta( $product, 'to_quantity', true );
            },
        ) );
        register_rest_field( 'user', 'to_description', array(
            'get_callback' => function( $user ) {
                $product = get_user_meta( $user['id'], 'ag_product', true );
                return get_post_meta( $product, 'to_description', true );
            },
        ) );
        register_rest_field( 'user', 'to_advantages', array(
            'get_callback' => function( $user ) {
                $product = get_user_meta( $user['id'], 'ag_product', true );
                return get_post_meta( $product, 'to_advantages', true );
            },
        ) );
    } );
    in reply to: Big security issue ... #14149
    Anh TranAnh Tran
    Keymaster

    Hi Virgile, thanks a lot for your feedback. I'll check and fix the plugin asap!

    To be honest, security is not my strength and I'm still improving it. Thanks for your help!

    in reply to: Group not working properly #14144
    Anh TranAnh Tran
    Keymaster

    Unfortunately, not. It should be consistent with other cloenable fields.

    in reply to: Group not working properly #14142
    Anh TranAnh Tran
    Keymaster

    Have you tried clearing browser cache? It’s an update of JS and requires to clear cache!

    Regarding the removal, when there is one instance, the remove link/button won’t show. It’s for you to enter data.

    in reply to: Front end comment form fields #14140
    Anh TranAnh Tran
    Keymaster

    Hi Christopher,

    We have that on the plan but it's not a priority at the moment. Sorry, but I don't have ETA for this feature.

Viewing 15 posts - 1,201 through 1,215 (of 3,708 total)