Possible to have alist of available hooks / filters?
-
Hi, could a list of available filters be published in the docs? I did found some pointed in the change logs though.
-
We currently don’t have all filters published. If you can share what you are trying to accomplish, happy to point you to the right filter to us.
Hi, I may need all available filters related to my account content tabs, thanks.
thanks! can you point me too to the actual tabs IDs? in order to delete some tabs.
$tabs['custom_tab_id']also can you provide an example the code for moving content from one tab to another? thanks.
You can find all the tab IDs here https://plugins.trac.wordpress.org/browser/wp-user-avatar/trunk/src/ShortcodeParser/MyAccount/MyAccountTag.php#L55
Great thanks! how to append the content from one tab into another tab?
Tried the code from:
Here you go https://profilepress.com/article/adding-menu-tabs-my-account-page/
But didn’t output anything, tried as well using the exact code posted there
How did you implement the code?
Inside functions.php inserting the exact code posted in the link (after trying with the custom data) in the theme and clearing the permalinks right afterwards, anyways I may do it another way: are there shortcodes for : Billing details, orders and subscriptions? If yes that would do.
Thanks
-
This reply was modified 1 year ago by
snippet24.
Unfortunately there isn’t shortcode for those parts.
Why not take a look https://plugins.trac.wordpress.org/browser/wp-user-avatar/trunk/src/ShortcodeParser/MyAccount/MyAccountTag.php#L55 and study the file. It will give you a better guidance on how to achieve whatever you are trying to do.
Unfortunately there isn’t shortcode for those parts.
Ohh understood.
Why not take a look https://plugins.trac.wordpress.org/browser/wp-user-avatar/trunk/src/ShortcodeParser/MyAccount/MyAccountTag.php#L55 and study the file. It will give you a better guidance on how to achieve whatever you are trying to do.
Ok I read most of it, wp-content\plugins\wp-user-avatar\src\ShortcodeParser\MyAccount constains the code for the templates seems it is correct to do something as:
$template_path = content_url() . '/plugins/wp-user-avatar/src/ShortcodeParser/MyAccount/templates/billing-details.tmpl.php';
$filtered_template_path = apply_filters('ppress_my_account_billing_details_template', $template_path);
require $filtered_template_path;in order to load it in a theme template page, I’m testing it but let me know if this is good way or should I take another approach
Update: The filter above weren’t working because I was setting it in another local wordpress install aaahh, I will try and report back.
Confirmed the filter works fine.
-
This reply was modified 1 year ago by
The topic ‘Possible to have alist of available hooks / filters?’ is closed to new replies.