Method | Description | |
---|---|---|
__construct ( string $id, string $name, callable $render_callback, callable $add_callback = null ) | Constructor. Sets up the properties. | |
add ( array $columns ) : array | Adds the column. | |
register ( ) : void | Registers the column methods by using the appropriate WordPress hooks. | |
render_content ( string $id, integer $site_id ) : boolean | Renders the column content. |
public __construct ( string $id, string $name, callable $render_callback, callable $add_callback = null ) | ||
$id | string | Column ID. |
$name | string | Column name. |
$render_callback | callable | Callback for rendering the column content. |
$add_callback | callable | Optional. Callback to handle adding the column. Defaults to null. |