WP_Terms_List_Table::column_cb( WP_Term $tag )


Description Description


Parameters Parameters

$tag

(WP_Term) (Required) Term object.


Top ↑

Return Return

(string)


Top ↑

Source Source

File: wp-admin/includes/class-wp-terms-list-table.php

	public function column_cb( $tag ) {
		if ( current_user_can( 'delete_term', $tag->term_id ) ) {
			return sprintf(
				'<label class="screen-reader-text" for="cb-select-%1$s">%2$s</label>' .
				'<input type="checkbox" name="delete_tags[]" value="%1$s" id="cb-select-%1$s" />',
				$tag->term_id,
				/* translators: %s: Taxonomy term name. */
				sprintf( __( 'Select %s' ), $tag->name )
			);
		}

		return '&nbsp;';
	}


Top ↑

User Contributed Notes User Contributed Notes

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