Unable to show a message after plugin activation

<?php /* Plugin Name: Activation Description: This display notice message test plugin Author: Nanhe Kumar Version: 1.0 Author URI: http://nanhe.in/ */ class Activation { public static function init() { add_action(‘admin_notices’, array(__CLASS__, ‘text_admin_notice’)); } public static function text_admin_notice() { ?> <div class=”notice notice-success is-dismissible”> <p> TEST MESSAGE</p> </div> <?php } } add_action(‘init’, array(‘Activation’, ‘init’)); Your message … Read more

Making a Custom Post Type Plugin – keep getting the white screen of death

You are closing your function right after the $args array. You need to enclose properly function local_business_directory_register() { $args = array( ‘label’ => __(‘Business Directory’), ‘singular_label’ => __(‘Business’), ‘public’ => true, ‘taxonomies’ => array(‘category’), ‘show_ui’ => true, ‘capability_type’ => ‘post’, ‘hierarchical’ => true, ‘has_archive’ => true, ‘supports’ => array(‘title’, ‘editor’, ), ‘rewrite’ => array(‘slug’ => … Read more