Last active
August 29, 2015 13:56
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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