Elementor Code Reference
  • Developers
  • Code Reference
  • Docs
  • Blog
  • Account
  • Developers
  • Code Reference
  • Docs
  • Blog
  • Account

Connect

Connect()


Methods

  • get_slug — Connect::get_slug() Changelog Changelog Version Description 2.3.0 Introduced. Source core/common/modules/connect/apps/connect.php protected function get_slug() { return 'connect'; }
  • render_admin_widget — Connect::render_admin_widget() Changelog Changelog Version Description 2.3.0 Introduced. Source core/common/modules/connect/apps/connect.php public function render_admin_widget() { if ( $this->is_connected() ) { $remote_user = $this->get( 'user' ); $title = sprintf( __( 'Connected to Elementor as <strong>%s</strong>', 'elementor' ), $remote_user->email ) . get_avatar( $remote_user->email, 20, '' ); $label = __( 'Disconnect', 'elementor' ); $url = $this->get_admin_url( 'disconnect' ); $attr = […]

Source

core/common/modules/connect/apps/connect.php

class Connect extends Common_App {

	protected function get_slug() {
		return 'connect';
	}

	public function render_admin_widget() {
		if ( $this->is_connected() ) {
			$remote_user = $this->get( 'user' );
			$title = sprintf( __( 'Connected to Elementor as <strong>%s</strong>', 'elementor' ), $remote_user->email ) . get_avatar( $remote_user->email, 20, '' );
			$label = __( 'Disconnect', 'elementor' );
			$url = $this->get_admin_url( 'disconnect' );
			$attr = '';
		} else {
			$title = __( 'Connect to Elementor', 'elementor' );
			$label = __( 'Connect', 'elementor' );
			$url = $this->get_admin_url( 'authorize' );
			$attr = 'class="elementor-connect-button"';
		}

		echo '<h1>' . __( 'Connect', 'elementor' ) . '</h1>';

		echo sprintf( '%s <a %s href="%s">%s</a>', $title, $attr, esc_attr( $url ), esc_html( $label ) );
	}
}
Elementor Code Reference
  • Code Reference
  • Elementor Hooks
    • PHP Hooks
    • JS Hooks
  • Elementor Classes
  • Elementor Methods
  • Elementor Functions
Developer Resources

Visit the official Developer Resources to learn how to extend Elementor.

Get Involved

Visit Elementor GitHub repository to contribute code or suggest new ideas.

  • Contact
  • About Us
  • Terms of Service
  • Privacy Policy
  • Template Library
  • Features
  • Theme Builder
  • Get Pro
Theme by Pojo.me
//Made in Elementor Page Builder
Enter your email and be the first to learn about new updates and features.
No thanks, I just want to download Elementor