How to solve this syntax error, unexpected end of file error? [duplicate]

Wednesday, November 4, 2015

This question already has an answer here:





<?php
/**
* Core Functions
*Author: Arif Hossin
*Version: 1.0
*/

// Football Plus Menu Page Function

function register_my_football_plus_menu_page(){
add_menu_page(
'Football Plugin', // The title to be displayed on the corresponding page for this menu
'Football Plus', // The text to be displayed for this actual menu item
'administrator', // Which type of users can see this menu
'Football Plus', // The unique ID - that is, the slug - for this menu item
'football_menu_page_display',// The name of the function to call when rendering the menu for this page
''
);
// Callback Function

function football_menu_page_display() {

// Create a header in the default WordPress 'wrap' container
$html = '
';
$html .= '

Player

';
$html .= '
';

// Send the markup to the browser
echo $html;
}
// end football_menu_page_display

//add Competition taxonomy Under Football Plus Menu

function create_competition_taxonomies() {

$labels = array(
'name' => _x( 'Competitions', 'taxonomy general name' ),
'singular_name' => _x( 'Competition', 'taxonomy singular name' ),
'search_items' => __( 'Search Competitions' ),
'popular_items' => __( 'Popular Competitions' ),
'all_items' => __( 'All Competitions' ),
'parent_item' => null,
'parent_item_colon' => null,
'edit_item' => __( 'Edit Competition' ),
'update_item' => __( 'Update Competition' ),
'add_new_item' => __( 'Add New Competition' ),
'new_item_name' => __( 'New Competition Name' ),
'separate_items_with_commas' => __( 'Separate Competitions with commas' ),
'add_or_remove_items' => __( 'Add or remove Competitions' ),
'choose_from_most_used' => __( 'Choose from the most used Competitions' ),
'not_found' => __( 'No Competitions found.' ),
'menu_name' => __( 'Competitions' ),
);

$args = array(
'hierarchical' => true,
'labels' => $labels,
'show_ui' => true,
'show_admin_column' => true,
'update_count_callback' => '_update_post_term_count',
'query_var' => true,
'rewrite' => array( 'slug' => 'Competitions' ),
);


register_taxonomy ( 'competition', 'Football Plus', $args );
}

0 comments:

Post a Comment