LLMS_Admin_Post_Table_Forms::manage_columns( string $column, int $post_id )
Manage content of custom columns
Parameters Parameters
- $column
-
(string) (Required) Table column name.
- $post_id
-
(int) (Required) WP Post ID of the form for the current row.
Return Return
(void)
Source Source
File: includes/admin/post-types/post-tables/class-llms-admin-post-table-forms.php
public function manage_columns( $column, $post_id ) { if ( 'location' === $column ) { $locs = LLMS_Forms::instance()->get_locations(); $loc = get_post_meta( $post_id, '_llms_form_location', true ); if ( isset( $locs[ $loc ] ) ) { printf( '<strong>%1$s</strong><br><em>%2$s</em>', $locs[ $loc ]['name'], $locs[ $loc ]['description'] ); } else { echo $loc; } } }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
5.0.0 | Introduced. |