Add_Twitter_Integration::add_integration_directory_func( $directory )

Set the directories that the auto loader will run in.


Parameters Parameters

$directory

(Required)


Top ↑

Return Return

(array)


Source Source

File: src/integrations/twitter/add-twitter-integration.php

	public function add_integration_directory_func( $directory ) {

		$directory[]    = dirname( __FILE__ ) . '/helpers';
		$twitter_client = get_option( '_uncannyowl_twitter_settings', array() );

		if ( isset( $twitter_client['oauth_token'] ) && ! empty( $twitter_client['oauth_token_secret'] ) ) {
			$directory[] = dirname( __FILE__ ) . '/actions';
		}

		return $directory;
	}