Custom Post Type Link from Plugin

Magic here is: ‘show_ui’ => true, ‘show_in_menu’ => ‘plugins.php’, Try this: function restaurant_menu_items() { $labels = array( ‘name’ => __(‘Restaurant Menu Items’, ‘post type general name’), ‘singular_name’ => __(‘Restaurant Menu Item’, ‘post type singular name’), ‘add_new’ => __(‘Add New’, ‘product page’), ‘add_new_item’ => __(‘Add New Menu Item’), ‘edit_item’ => __(‘Edit Menu Item’), ‘new_item’ => __(‘New … Read more

wp_mail is undefined

You may call the function too early. You have to wait until the action ‘plugins_loaded’ fires. wp_mail() is defined in wp-includes/pluggable.php. pluggable.php is loaded in wp-settings.php after the plugins are loaded but before ‘plugins_loaded’ is called. See this answer for an example.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)