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.


Top ↑

Return Return

(void)


Top ↑

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;
			}
		}

	}

Top ↑

Changelog Changelog

Changelog
Version Description
5.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.