This repository has been archived by the owner. 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
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.