Skip to content

Instantly share code, notes, and snippets.

@alekseivillegas
Last active August 29, 2015 13:56
Show Gist options
  • Save alekseivillegas/9119433 to your computer and use it in GitHub Desktop.
Save alekseivillegas/9119433 to your computer and use it in GitHub Desktop.
Mostrar o modificar un icono en Admin de wordpress, para custom_post_type
<?php
/*
Modificar el icono de custom post type en admin wordpress
*/
/**
* registrar el custom post type
*
* @link http://codex.wordpress.org/Function_Reference/register_post_type
*/
protected function register_post_type() {
$labels = array(
'name' => __( 'code', 'code-post-type' ),
'singular_name' => __( 'Code item', 'code-post-type' ),
'add_new' => __( 'Add New Item', 'code-post-type' ),
// . . .
);
$args = array(
'menu_icon' => 'dashicons-welcome-write-blog', // ejemplo: dashicons-portfolio | dashicons-format-chat | etc....
// visita http://melchoyce.github.io/dashicons/ para ver la lista completa
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment