helpful_admin_tabs

With this you can put your own admin tabs into the settings of Helpful. So you can customize and extend the admin interface of Helpful.

/**
 * Here you can add your own tabs to Helpful, which will then
 * be shown in the admin area. However, you will need to create
 * your own page for this.
 *
 * @param array $tabs default tabs.
 * @param array
 */
add_filter('helpful_admin_tabs', function (array $tabs) {

    $tabs['my_tab'] = [
        'href' => 'link to admin page',
        'name' => 'tab name',
    ];

    return $tabs;
});

Was this post helpful?

Top