Drive to another external page Wordpress

0

Colleagues.

I'm trying to tinker with Wordpress and confess that I'm getting a huge spanking. I have to create one more item in the menu in the Wordpress manager (wp-admin) and I saw that I have to create, if I am not mistaken, inside the functions.php file, however I am not sure how to create it. I have a template that was created by the colleague previously that did it this way:

/************ ALBUM REGISTER***********/

add_action('init', 'album_register');
register_taxonomy('album', 'album', array('hierarchical' => true, 'label' => 'Categorias de Album', 'query_var' => true, 'rewrite' => true));
function album_register() {

    $labels = array(
        'name' => _x('album', 'post type general name'),
        'singular_name' => _x('album', 'post type singular name'),
        'add_new' => _x('Adicionar Album', 'Vereador'),
        'add_new_item' => __('Adicionar Album'),
        'edit_item' => __('Editar Album'),
        'new_item' => __('Adicionar Album'),
        'view_item' => __('Visualizar Album'),
        'search_items' => __('Procurar Album'),
        'not_found' =>  __('Nothing found'),
        'not_found_in_trash' => __('Nothing found in Trash'),
        'parent_item_colon' => ''
    );

    $args = array(
        'labels' => $labels,
        'public' => true,
        'publicly_queryable' => true,
        'show_ui' => true,
        'query_var' => true,
        //'menu_icon' => get_stylesheet_directory_uri() . '/imagens/vereadores.png',
        'rewrite' => true,
        'capability_type' => 'post',
        'hierarchical' => false,
        'menu_position' => null,
        'supports' => array('title','editor','thumbnail')
      );
    register_post_type( 'album' , $args );
}
/************ END ALBUM REGISTER***********/

How would I do to create an item called paychecks and direct to the contracheques.php page?

Thank you!

    
asked by anonymous 11.01.2016 / 14:08

1 answer

0

If it's to create in the admin main menu just use something like this:

add_action( 'admin_menu', 'my_admin_menu' );

function my_admin_menu() {
    add_menu_page( 'My Top Level Menu Example', 'Top Level Menu', 'manage_options', 'myplugin/myplugin-admin-page.php', 'myplguin_admin_page', 'dashicons-tickets', 6  );
}
    
11.01.2016 / 15:20