Property | Type | Description | |
---|---|---|---|
$rating |
Method | Description | |
---|---|---|
__construct ( |
Admin constructor. | |
add_hooks ( ) | Add hooks | |
add_meta_box ( ) | Adds a box to the main column on the Post and Page edit screens. | |
column_content ( $column_name, $post_id ) | Output the rating percentage in the column | |
column_header ( $defaults ) : mixed | Add our rating column | |
comments_column_content ( $column, $comment_ID ) | ||
comments_column_header ( $columns ) | ||
dashboard_widget ( ) | Dashboard widget showing the 5 most recent ratings | |
listen ( ) : boolean | ||
register_dashboard_widget ( ) | Registers the dashboard widget | |
show_meta_box ( WP_Post $post ) | ||
sortable_columns ( $columns ) : mixed | Add our rating column to the array of sortable columns | |
sortable_orderby ( $query ) | Tell WordPress how to order our rating column |
Method | Description | |
---|---|---|
percent2Color ( $value, integer $brightness = 255, integer $max = 100, integer $min, string $thirdColorHex = '00' ) : string | Returns a HEX color from a percentage (red to green) |
public add_meta_box ( ) |
public column_content ( $column_name, $post_id ) | ||
$column_name | ||
$post_id |
public column_header ( $defaults ) : mixed | ||
$defaults | ||
return | mixed |
public dashboard_widget ( ) |
public register_dashboard_widget ( ) |
public sortable_columns ( $columns ) : mixed | ||
$columns | ||
return | mixed |
public sortable_orderby ( $query ) | ||
$query |