• Resolved ans11

    (@ans11)


    I want to ask if someone can provide me with the details of dokan_post_input_box(). I have searched a lot on internet but couldn’t find any resource that explain this in detail i.e. what are the parameters that is accepts etc. I was only able to get that it is used for input elements. Thank you for the help.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Yeasin Arafat

    (@yeasinarafathridoy)

    Hi @ans11,

    The dokan_post_input_box() function is a Dokan powered WordPress function that creates HTML input elements based on the provided parameters. It is a comprehensive function which can generate a variety of input fields, including text input, checkboxes, dropdown menus, and radio buttons.

    Here’s an explanation of the parameters and how the function works:

    $post_id: This parameter specifies the post ID for which you want to generate the input field. It’s used to retrieve or save post meta data associated with that post.

    $meta_key: This parameter is the key for the post meta data you want to work with. It’s used to identify the specific field you’re targeting.
    $attr: This is an associative array that contains additional attributes for the input element. These attributes can include things like placeholders, classes, names, values, and more. The function checks if these attributes are set and uses default values if they’re not provided.
    $type: This parameter specifies the type of input field you want to generate. It determines which HTML input element is created (e.g., text input, textarea, checkbox, etc.). The function contains different cases for handling different input types.

    Thread Starter ans11

    (@ans11)

    Hi @yeasinarafathridoy

    Thank you for your reply. And where does it defined. For example in the edit_product_single.php file there is a dokan_post_input_box that has array[‘class’ ? ? ? => ‘dokan-product-regular-price’,].

    Now I want to ask what is this above class means and where can I find the details of this above class? Again thank you for your reply.

    Plugin Support Yeasin Arafat

    (@yeasinarafathridoy)

    @ans11,

    You can find the details of the function from dokan-lite > includes > functions.php line no 639.

    Thanks,

    Thread Starter ans11

    (@ans11)

    @yeasinarafathridoy Thank you for your reply.

    Plugin Support Tanvir Hasan

    (@tanvirh)

    Hi @ans11

    As the purpose of this topic has been served we are marking this topic as resolved. If you encounter any further issues, please don’t hesitate to open a new topic.

    Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Details of dokan_post_input_box’ is closed to new replies.