LLMS_REST_Webhooks::get_default_column_values()

Get default column values.


Description Description

Overrides parent to dynamically set the class variable since several defaults are generated through functions.


Top ↑

Return Return

(array)


Top ↑

Source Source

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

	 */
	public function get_default_column_values() {

		$this->default_column_values = array(
			'secret'        => wp_generate_password( 50, true, true ),
			'status'        => 'disabled',
			'failure_count' => 0,
			'user_id'       => get_current_user_id(),
			'name'          => sprintf(
				// Translators: %1$s = created date.
				__( 'Webhook created on %1$s', 'lifterlms' ),
				wp_date(
					sprintf(
						// Translators: %1$s Date format as specified in the WordPress General Settings, %1$s Time format as specified in the WordPress General Settings.
						_x( '%1$s @ %2$s', 'Webhook created on date parsed by wp_date', 'lifterlms' ),
						get_option( 'date_format' ),
						get_option( 'time_format' )
					)


Top ↑

Changelog Changelog

Changelog
Version Description
1.0.0-beta.3 Fix formatting error.
1.0.0-beta.17 Remove reference to 'pending_delivery' (unused) column.
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.