Okay
  Public Ticket #275383
What is $callback of Project Categories meta-box?
Closed

Comments

  • Mike started the conversation

    Hello Salient Support team,

    I am hitting my head to the wall from not being able to find the $callback of meta-box widget called "Project Categories".

    I am trying to implement one feature to my administration, but I need to know this specific information.

    Basically this:

    remove_meta_box( 'project-typediv', 'page', 'side' );

    add_meta_box('project-typediv', __('Type'), 'MISSING INFORMATION', 'page', 'side', 'high');

    Could you please take a look at it and consider helping?

    Have a nice day,

    Also: This theme f*cking rocks!

    Mikey :D

  •  1,070
    ThemeNectar replied

    Hey Mikey!

    The portfolio categories are registered using the standard register_taxonomy function in WP (in the functions.php file look for this)

    register_taxonomy("project-type", 
    	array("portfolio"), 
    	array("hierarchical" => true, 
    			'labels' => $category_labels,
    			'show_ui' => true,
    		    	'query_var' => true,
    			'rewrite' => array( 'slug' => 'project-type' )
    ));
    

    What the callback actually is in the add_meta_box function is the name of your own function which will be used to generate the HTML for the box you're adding. If you want to see an example of that in the theme check out the files in nectar/meta :)

    Cheers