WordPress.org

Making WordPress.org

Changeset 8731


Ignore:
Timestamp:
05/06/2019 07:27:24 AM (11 months ago)
Author:
ocean90
Message:

Translate/Rosetta: Register a navigation menu for storing helpful resources for translation contributors.

See #3522.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/rosetta/inc/site/class-locale-main.php

    r6507 r8731  
    6666        $this->initialize_jetpack_customizations();
    6767        $this->initialize_user_role_customizations();
     68
     69        add_action( 'after_setup_theme', [ $this, 'register_resources_nav_menu' ] );
     70    }
     71
     72    /**
     73     * Registers a nav menu for storing resources for translation contributors.
     74     */
     75    public function register_resources_nav_menu() {
     76        register_nav_menu( 'rosetta_translation_contributor_resources', __( 'Resources for translation contributors', 'rosetta' ) );
    6877    }
    6978
Note: See TracChangeset for help on using the changeset viewer.