I’m trying to remove a hook using the remove action hook in a plugin I’m working on. However, the code I wrote in the function.php file (child theme) does not work.
If I directly comment the hook (related hook here ) the code works. I couldn’t find what I’m doing wrong. I would be glad if you help.
My Code:
function remove_a_feature_for_seller(){
remove_action('dokan_settings_form_bottom', array(dokan_pro()->settings, 'render_biography_form'), 10, 2);
}
add_action('init', 'remove_a_feature_for_seller');