Skip to content
This repository was archived by the owner on Jul 17, 2018. It is now read-only.
diggy edited this page Oct 17, 2014 · 8 revisions

The Category Pie plugin for WordPress adds a pie chart to the administration pages for categories, tags and custom taxonomies. For non-hierarchical taxonomies like post tags the top 10 is displayed.

Download

Screenshot

Hooks

Filter Hooks

  • category_pie_taxnow_hook
  • category_pie_datarows
  • category_pie_chart_options

Code Snippets

Configure pie chart options

Use the category_pie_chart_options filter to customize the pie chart.

add_filter( 'category_pie_chart_options', 'my_category_pie_chart_options', 10, 1 );
function my_category_pie_chart_options( $chart_options )
{
    $chart_options['is3D'] = true;

    return $chart_options;
}

Move the pie chart

Use the category_pie_taxnow_hook filter to move the pie chart to a different location on the admin page, e.g. below the terms table:

add_filter( 'category_pie_taxnow_hook', 'my_category_pie_taxnow_hook', 10, 2 );
function my_category_pie_taxnow_hook( $hook, $taxnow )
{
    return "after-{$taxnow}-table";
}

Support

Clone this wiki locally