• chrsc

    (@chrsc)


    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/

  • The topic ‘Dashicon’ is closed to new replies.