Przeglądaj źródła

fixed error in function name

eddiemachado 13 lat temu
rodzic
commit
5f124b70e1
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      library/custom-post-type.php

+ 2 - 2
library/custom-post-type.php

@@ -16,7 +16,7 @@ URL: http://themble.com/bones/
 
 
 // let's create the function for the custom type
-function custom_post__xample() { 
+function custom_post_example() { 
 	// creating (registering) the custom type 
 	register_post_type( 'custom_type', /* (http://codex.wordpress.org/Function_Reference/register_post_type) */
 	 	// let's now add all the options for this post type
@@ -60,7 +60,7 @@ function custom_post__xample() {
 } 
 
 	// adding the function to the Wordpress init
-	add_action( 'init', 'custom_post__xample');
+	add_action( 'init', 'custom_post_example');
 	
 	/*
 	for more information on taxonomies, go here: