Top Questions

  • 2.9 Years

    • Category : Wordpress
    • Location : Chandigarh
    • Posted On : Mar 9, 2016
    /**
     * Register a custom menu page.
     */
    function wpdocs_register_my_custom_menu_page() {
        add_menu_page(
            __( 'Bookings', 'textdomain' ),
            'Bookings',
            'manage_options',
            'admin.php?page=booking_diplay',
            'booking_display',
            plugins_url( 'bookin1.png' ),
            6
        );
    }
    add_action( 'admin_menu', 'wpdocs_register_my_custom_menu_page' );
    function booking_display()
    {
     require_once(plugin_dir_path(__FILE__).'booking_display.php');
    }

     

Add Your Answer

When answering a question please:
  1. Read the question carefully.
  2. Understand that English isn't everyone's first language so be lenient of bad spelling and grammar.
  3. If a question is poorly phrased then either ask for clarification, ignore it, or edit the question and fix the problem. Insults are not welcome.
Let's work to help developers, not make them feel stupid.