C
C
Chokatillo2017-08-19 21:54:22
Adobe Photoshop
Chokatillo, 2017-08-19 21:54:22

How to add active fields from the "Counters" area to the "Menu" area in the WP-Recall plugin?

Is it possible, through the personal account tab manager, to add tabs to the MENU: subscriptions, subscribers, and rating?
So that the buttons: subscriptions, subscribers, and rating are also in the TAB menu, with the same ajax-loading as the tabs: profile and chats
Add them with additional active fields
The usual way to add an active field to these tabs does not work
. Is there a solution to this issue?
Thank you for your attention, Lord!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
W
Worgen, 2019-04-19
@Worgen

Through the scissors tool.

V
Vladimir Druzhaev, 2017-08-20
@serovpochta

This snippet will answer your question:

function otfm_change_output_tab($tabs){
    if($tabs['id'] === 'rating' || $tabs['id'] === 'subscriptions' || $tabs['id'] === 'followers'){
        $tabs['output'] = 'menu';
    }
    
    return $tabs;
}
add_filter('rcl_tab','otfm_change_output_tab');

In the admin panel, in the menu area, you can drag and drop these three tabs.
Print $tabs inside the function - and you will see an array of tab data (well, if you need to remove the counter, for example, or something else)
For details, see the manual https://codeseller.ru/post-group/izmenyaem-dannye-... - official site of the plugin developer - it is better to ask such questions on the forum there. because we may not see where else on the internet you are trying to solve your technical questions about this plugin.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question