Skip to content

Commit

Permalink
Move flush cache link into tools menu
Browse files Browse the repository at this point in the history
Issue #931
  • Loading branch information
fpcorso committed Jan 6, 2021
1 parent 3debfb5 commit 1d1adf9
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions includes/modules/admin-bar.php
Original file line number Diff line number Diff line change
Expand Up @@ -183,15 +183,6 @@ public static function toolbar_links( $wp_admin_bar ) {
) );
}

$wp_admin_bar->add_node(
array(
'id' => 'flush-popup-cache',
'title' => __( 'Flush Popup Cache', 'popup-maker' ),
'href' => add_query_arg( 'flush_popup_cache', 'yes' ),
'parent' => 'popup-maker',
)
);

/**
* Tools
*/
Expand All @@ -202,6 +193,15 @@ public static function toolbar_links( $wp_admin_bar ) {
'parent' => 'popup-maker',
) );

$wp_admin_bar->add_node(
array(
'id' => 'flush-popup-cache',
'title' => __( 'Flush Popup Cache', 'popup-maker' ),
'href' => add_query_arg( 'flush_popup_cache', 'yes' ),
'parent' => 'pum-tools',
)
);

/**
* Get Selector
*/
Expand Down

0 comments on commit 1d1adf9

Please sign in to comment.