Procházet zdrojové kódy

fixed error in function name

eddiemachado před 13 roky
rodič
revize
5f124b70e1
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  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: