Get default column values.

Description Description

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

Top ↑

Return Return


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: %s = created date.
				__( 'Webhook created on %s', 'lifterlms' ),
				// Translators: Date format.
				strftime( _x( '%b %d, %Y @ %I:%M %p', 'Webhook created on date parsed by strftime', 'lifterlms' ) ) // phpcs:disable WordPress.WP.I18n.UnorderedPlaceholdersText

		return parent::get_default_column_values();


Top ↑

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.