How to add notification bubble inbox gravityflow to toolbar

  • Welcome to Babiato Forum! All Resources are 100% clean and Safe to Use

Dec 17, 2019
39
1
8
Hi all,
I want to add inbox of gravityflow for status pending (level approval) to toolbar website, How to do it? Please help me!

Example:
Pic 01: menu admin
1659453918733.png
Add to toolbar at:
1659453988502.png
 
Dec 17, 2019
39
1
8
i find code in source is:
public function show_inbox_count( $menu ) {

$app_settings = $this->get_app_settings();

if ( ! rgar( $app_settings, 'workflow_inbox_count' ) ) {
return $menu;
}

$custom_labels = get_option( 'gravityflow_app_settings_labels', array() );
$custom_navigation_labels = rgar( $custom_labels, 'navigation' );
$custom_workflow_label = rgar( $custom_navigation_labels, 'workflow' );
$workflow_label = $custom_workflow_label ? $custom_workflow_label : 'Workflow';

$workflow_menu_pos = -1;
foreach ( $menu as $menuitem ) {
if ( $menuitem[0] == $workflow_label ) {
$workflow_menu_pos = array_search( $menuitem, $menu, true );
}
}

$pending_count = $this->get_inbox_count();
$menu[ $workflow_menu_pos ][0] = sprintf( __( '%s %s' ), $workflow_label, "<span class='update-plugins count-$pending_count'><span class='plugin-count'>" . number_format_i18n($pending_count) . "</span></span>" );

return $menu;
}
 

Forum statistics

Threads
73,530
Messages
953,616
Members
282,133
Latest member
Harry747568

About us

  • Babiato Forum - The webmaster community has been around for many years and pride ourselves on offering unbiased, critical discussion among people of all different backgrounds. We are working every day, updating Daily resource to make sure our community is one of the best.

Quick Navigation

User Menu