• Mihail D

    (@memberremember)


    Hi all
    As possible, please add additional field in contact methods for LinkedIn

    >> wordpress-seo\admin\class-admin.php

    /**
    	 * Filter the $contactmethods array and add Facebook, Google+, LinkedIn and Twitter.
    	 *
    	 * These are used with the Facebook author, rel="author" and Twitter cards implementation.
    	 *
    	 * @param array $contactmethods currently set contactmethods.
    	 *
    	 * @return array $contactmethods with added contactmethods.
    	 */
    	public function update_contactmethods( $contactmethods ) {
    		// Add Google+
    		$contactmethods['googleplus'] = __( 'Google+ full url like https://plus.google.com/+AhrefsCom/posts/?rel=author', 'wordpress-seo' );
    		// Add Twitter
    		$contactmethods['twitter'] = __( 'Twitter username (without @)', 'wordpress-seo' );
    		// Add Facebook
    		$contactmethods['facebook'] = __( 'Facebook profile URL (without https://facebook.com/)', 'wordpress-seo' );
    		// Add LinkedIn
    		$contactmethods['linkedin'] = __( 'LinkedIn (without https://linkedin.com/in/) or type whole url with http:// or https://', 'wordpress-seo' );
    
    		return $contactmethods;
    	}

    thank you

    https://wordpress.org/plugins/wordpress-seo/

Viewing 1 replies (of 1 total)
  • Thread Starter Mihail D

    (@memberremember)

    // Add LinkedIn
    		$contactmethods['linkedin'] = __( 'LinkedIn (without https://linkedin.com/in/) or type whole url with http:// or https://', 'wordpress-seo'

    or simply this 2 rows 🙂

Viewing 1 replies (of 1 total)
  • The topic ‘Small suggestions (add LinkedIn in contact methods)’ is closed to new replies.