WordPress.org

Ready to get started?Download WordPress

Forums

Twitter Tools
Dashicon (1 post)

  1. chrsc
    Member
    Posted 4 months ago #

    Add a dashicon to your next release of twitter tools for people who have enabled the admin ui.

    /**
    	 * Registers the aktt_tweet post type
    	 *
    	 * @return void
    	 */
    	static function register_post_type() {
    		register_post_type(self::$post_type, array(
    			'labels' => array(
    				'name' => __('Tweets', 'twitter-tools'),
    				'singular_name' => __('Tweet', 'twitter-tools')
    			),
    			'supports' => array(
    				'editor',
    				'thumbnail',
    			),
    			'public' => (bool) self::option('tweet_visibility'),
    			'show_ui' => (bool) self::option('tweet_admin_ui'),
    			'rewrite' => array(
    				'slug' => 'tweets',
    				'with_front' => false
    			),
    			'has_archive' => true,
    			'menu_icon' => 'dashicons-twitter',
    		));
    	}

    Cheers,
    Chris

    https://wordpress.org/plugins/twitter-tools/

Reply

You must log in to post.

About this Plugin

About this Topic