LLMS_REST_Table_Webhooks::get_name_cell( LLMS_REST_API_Key $webhook )

Retrieve information for a the webhook title/description


Parameters Parameters

$webhook

(LLMS_REST_API_Key) (Required) API Key object.


Top ↑

Return Return

(string)


Top ↑

Source Source

File: libraries/lifterlms-rest/includes/admin/tables/class-llms-rest-table-webhooks.php

	protected function get_name_cell( $webhook ) {

		$html      = esc_html( $webhook->get( 'name' ) );
		$edit_link = esc_url( $webhook->get_edit_link() );
		$html      = '<a href="' . $edit_link . '">' . $html . '</a>';
		$html     .= '<div class="llms-rest-actions">';
		$html     .= '<small class="llms-action-icon">ID: ' . $webhook->get( 'id' ) . '</small> | ';
		$html     .= '<small><a class="llms-action-icon" href="' . $edit_link . '">' . __( 'View/Edit', 'lifterlms' ) . '</a></small> | ';
		$html     .= '<small><a class="llms-action-icon danger" href="' . esc_url( $webhook->get_delete_link() ) . '">' . __( 'Delete', 'lifterlms' ) . '</a></small>';
		$html     .= '</div>';

		return $html;

	}


Top ↑

Changelog Changelog

Changelog
Version Description
1.0.0-beta.1 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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