Facebook_Settings::set_properties()

Sets up the properties of the settings page


Source Source

File: src/integrations/facebook/settings/settings-facebook.php

	protected function set_properties() {

		$is_user_connected = $this->get_helper()->is_user_connected();

		$this->set_id( 'facebook-pages' );

		$this->set_icon( 'facebook' );

		$this->set_name( 'Facebook Pages' );

		$this->set_status( $is_user_connected ? 'success' : '' );

		if ( $is_user_connected ) {
			$this->set_js( '/facebook/settings/assets/script.js' );
		}

		$this->set_css( '/facebook/settings/assets/style.css' );

	}