Advertisement
Guest User

create_initial_taxonomies()

a guest
Mar 26th, 2011
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. // this will be in class-wp-xmlrpc-server
  2. function wp_resgisterTaxonomy() {
  3. // get the arguments
  4. // use wp_setoptions to save the value as option
  5. }
  6.  
  7.  
  8.  
  9. // this will be added to the create_initial_taxonomies method in wp-includes/taxonomy.php
  10.  
  11.  
  12.  
  13. // get the option from the options table
  14.  
  15. $options = an array of custom taxonomies retrieved from the options table
  16. foreach($options as $option) {
  17. // strip out the values
  18. // use register_taxonomy to register
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement