Skip to content

Commit

Permalink
Sync class-wpcom-admin-menu.php (#25726)
Browse files Browse the repository at this point in the history
* add Advertising menu behind filter
  • Loading branch information
andres-blanco authored Aug 19, 2022
1 parent a86126b commit 5cac258
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions projects/plugins/jetpack/changelog/fix-wpcom-menu
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: minor
Type: other

sync class-wpcom-admin-menu file
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,9 @@ public function add_users_menu() {
public function add_options_menu() {
parent::add_options_menu();

if ( apply_filters( 'dsp_promote_posts_enabled', false, get_current_user_id() ) ) {
add_submenu_page( 'tools.php', esc_attr__( 'Advertising', 'jetpack' ), __( 'Advertising', 'jetpack' ), 'manage_options', 'https://wordpress.com/advertising/' . $this->domain, null, 1 );
}
add_submenu_page( 'options-general.php', esc_attr__( 'Hosting Configuration', 'jetpack' ), __( 'Hosting Configuration', 'jetpack' ), 'manage_options', 'https://wordpress.com/hosting-config/' . $this->domain, null, 10 );
}

Expand Down

0 comments on commit 5cac258

Please sign in to comment.