Warning: Array to string conversion in /home/customer/www/docs.automatorplugin.com/public_html/wp-content/themes/wporg-developer/inc/template-tags.php on line 825

Warning: foreach() argument must be of type array|object, string given in /home/customer/www/docs.automatorplugin.com/public_html/wp-content/themes/wporg-developer/inc/template-tags.php on line 830

Warning: Array to string conversion in /home/customer/www/docs.automatorplugin.com/public_html/wp-content/themes/wporg-developer/inc/template-tags.php on line 825

Warning: foreach() argument must be of type array|object, string given in /home/customer/www/docs.automatorplugin.com/public_html/wp-content/themes/wporg-developer/inc/template-tags.php on line 830
PeepSo_Helpers::get_name( $name,  $type = 'full' )


Warning: Array to string conversion in /home/customer/www/docs.automatorplugin.com/public_html/wp-content/themes/wporg-developer/inc/template-tags.php on line 825

Warning: foreach() argument must be of type array|object, string given in /home/customer/www/docs.automatorplugin.com/public_html/wp-content/themes/wporg-developer/inc/template-tags.php on line 830

Warning: Array to string conversion in /home/customer/www/docs.automatorplugin.com/public_html/wp-content/themes/wporg-developer/inc/template-tags.php on line 825

Warning: foreach() argument must be of type array|object, string given in /home/customer/www/docs.automatorplugin.com/public_html/wp-content/themes/wporg-developer/inc/template-tags.php on line 830

Parameters Parameters

(Required) name of the follower

$user_id

(Required)


Source Source

File: src/integrations/peepso/helpers/peepso-helpers.php

	public function get_name( $name, $type = 'full' ) {
		if ( empty( $name ) ) {
			return;
		}
		$full_name = explode( ' ', $name );
		if ( $type === 'last' ) {
			return isset( $full_name[1] ) ? $full_name[1] : '';
		}
		if ( $type === 'first' ) {
			return isset( $full_name[0] ) ? $full_name[0] : '';
		}
		if ( $type === 'full' ) {
			return $full_name;
		}
	}