Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
Twitter_Settings::set_properties()
Sets up the properties of the settings page
Source
File: src/integrations/twitter/settings/settings-twitter.php
private function set_properties() { // Define the ID // This should go first $this->set_id( 'twitter-api' ); // Set the icon // This expects a valid <uo-icon> ID // Check the Design Guidelines to see the list of valid IDs $this->set_icon( 'twitter' ); // Set the name // As this is the brand name, it probably shouldn't be translatable $this->set_name( 'Twitter' ); try { $this->client = $this->helpers->get_client(); $this->is_connected = true; } catch ( \Exception $th ) { $this->client = false; $this->is_connected = false; } // Set the status // This expects a valid <uo-tab> status // Check the Design Guidelines to see the list of valid statuses $this->set_status( $this->is_connected ? 'success' : '' ); }
Expand full source code Collapse full source code View on Github