This is the core developer of Dokan. There is a much simpler way to use your custom function for this case. This dokan_add_shipping_tracking_info
action can be found within this template : /rafsuntaskin.com/wp-content/plugins/dokan/templates/orders/details.php
.
You can copy this into your theme and change the action to your custom function like this :
rt_custom_add_shipping_tracking_info
replaces dokan_add_shipping_tracking_info
Then add a custom wp ajax hook in your theme’s functions.php
wp_ajax_rt_custom_add_shipping_tracking_info
and use the custom function as callback.
Thanks
Related Posts:
- When is it appropriate to put functions on page template vs. functions.php?
- When to check if a function exists
- Maximum lifetime for nonce
- How to modify files inside wp-includes directory in wordpress
- Customise Grouped Product display in Woocommerce with custom column
- Does hooking into a plugin action / filter override the plugin’s function for that hook?
- Dynamic banner for use on external sites
- How to include PHP files in plugins the correct way
- How can you check if you are in a particular page in the WP Admin section? For example how can I check if I am in the Users > Your Profile page?
- Is it ever okay to include inline CSS in plugins?
- Why does WordPress add 0 (zero) to an Ajax response?
- Passing arguments to a admin menu page callback?
- How can I configure Docker for developing and deploying a custom theme?
- function deactivate_plugins does not exist
- Understanding WordPress functions’ naming conventions
- Allowing for multiple template views on the Gallery Settings page when using the Visual Editor
- Using Primary Color in Plugin Block
- How can I change the frequency of a scheduled event?
- How can i list current author’s categories?
- Problems with removing admin bar
- Check if I am in the Admin Panel (wp-admin)?
- What is the Difference between directly call a function and call a function using add_action?
- Call to undefined function get_blog_option()
- Undefined function wp_set_password
- Delete a specific item menu when I deactivate my plugin
- Plugin Uninstall and Deactivate via Options Menu
- How can I add a CSS rule to edit.php?
- Get the password key when using the wp_new_user_notification_email filter
- Order properties should not be accessed directly
- How to deal with equal & similar arguments for a function?
- add more custom post types and custom role to the code
- Executing a function upon webhook calling wordpress
- Customizer: widget-synced triggers twice
- Enqueue scripts in footer
- how to use hook deleted_user into custom function to delete user from custom table
- Can wp_list_comments output into variable?
- is user logged in not working
- Where to store the name of a custom table?
- WordPress is automatically linking plain text email addresses
- Is Using WordPress Supplied WYSIWYG Advisable?
- ServerSideRender and Media Object: attributes passing image data object to php renderer even though it’s not set
- Override class inside $atts shortcode_atts in WordPress
- add_rewrite_rule works in themes function php but when moved into plugin it stops working
- Clearing caches on plugin uninstall
- How to use a hook to override an update_post_meta call in a plugin?
- Where can i find wordpress auto update code flows?
- correct way to call javascript into hook function
- how to search users by ajax live search
- Retrieve $_POST data submitted from external URL in WordPress(NOT API)
- Remove unwanted elements for a wp_nav_menu
- How to add user details to different tables immediately after user registration
- mysql_real_escape_string() vs. esc_sql() in WordPress
- Checking for existence of a page by title?
- how to get context information inside my funcion
- Fatal error: Call to a member function get_page_permastruct() on a non-object
- wp_get_post_terms Order by not working
- Function/Class to list categories with checkboxes
- How to obtain the current website URL in my theme?
- What exactly do this function declared into functions.php file of a WP theme?
- How to set a cookie for logged in users to md5($user->ID . “my_secret”)?
- Why wp_die() doesn’t work with wp_redirect but exit() works
- Autogenerate a Table of Contents
- Alternative functions for mysql_free_result and mysql_ping in wordpress functions
- Create Widget or Enable Shortcodes in Sidebar
- WordPress multisite,use same cookies across all website?
- unregister_setting() vs delete_option() for plugin update
- How to change WooCommerce loop product title HTML output in single product page and archive page
- how to save wp_editor html content in options table
- How to use a WP_Customize_Control outside of the Customizer?
- Overwriting a plugin function
- Writing editor content to a file
- Adding tables to dashboard pages programmatically?
- WP 3-way voting system: On to something! Please help!
- How to determine which capability to use?
- Custom Settings Plugin Save foreach checkboxes
- How to keep plugin (media-sync) running even the tab is closed?
- Custom Endpoint – Does it possible to use PUT method with WP API Rest?
- Why won’t this submenu page show? – My First WordPress Plugin
- function add custom fields to media gallery
- Make visible page only in the trash
- WordPress: I wanted to use Add rewrite rule multiple times for multiple CPT in my plugin
- WordPress Ajax not returning Response
- Remove tag from all posts when publishing new post
- WordPress plugin how to run function when button is clicked
- Determine if the current page, is being edited
- WordPress delete mysql rows with string
- PHP includes with AJAX actions
- Custom Post Type and Functions
- Associating special meaning with user id 0
- WordPress permalink setting
- Theming Custom Plugin Page
- Best practice: What belongs in theme and what in plugin for large eCommerce website
- Adding class to the parent of current-post-ancestor / current-menu-parent / current-post-parent
- How do I store a custom dataset in WordPress to best take advantage of API?
- How can i call from custom fields to the category editor?
- Why does this fail: Disabling plugins enqueue_script() in functions.php
- Is Explicit Versioning a better alternative to Semantic Versioning for wordpress?
- Custom plugin not appearing
- get_term_by() returning null on plugin
- Is there any other ways to replicating changes on live from staging without pushing from git