| @@ -89,15 +89,19 @@ | ||
| 89 | 89 | $settings['elementor_edit_page'] = $this->get_edit_button_config(); |
| 90 | 90 | } |
| 91 | 91 | |
| 92 | 92 | /** |
| 93 | - * Register admin_bar config to parse later in the frontend and add to the admin bar with JS | |
| 93 | + * Admin bar settings in the frontend. | |
| 94 | 94 | * |
| 95 | - * @param array $settings the admin_bar config | |
| 95 | + * Register admin_bar config to parse later in the frontend and add to the admin bar with JS. | |
| 96 | 96 | * |
| 97 | 97 | * @since 3.0.0 |
| 98 | + * | |
| 99 | + * @param array $settings the admin_bar config | |
| 98 | 100 | */ |
| 99 | - return apply_filters( 'elementor/frontend/admin_bar/settings', $settings ); | |
| 101 | + $settings = apply_filters( 'elementor/frontend/admin_bar/settings', $settings ); | |
| 102 | + | |
| 103 | + return $settings; | |
| 100 | 104 | } |
| 101 | 105 | |
| 102 | 106 | /** |
| 103 | 107 | * Creates the config for 'Edit with elementor' menu item. |