芝麻web文件管理V1.00
编辑当前文件:/home/mybf1/www/ja.bf1.my/wp-content/plugins/all-in-one-seo-pack/inc/schema/graphs/graph-person.php
post_author ) ) { $user_id = intval( $post->post_author ); $author_url = get_author_posts_url( $post->post_author ); $hashtag = 'author'; } $author_name = get_the_author_meta( 'display_name', $user_id ); $rtn_data = array( '@type' => $this->slug, '@id' => $author_url . '#' . $hashtag, 'name' => $author_name, 'sameAs' => $this->get_user_social_profile_links( $user_id ), ); // Handle Logo/Image. $image_schema = $this->prepare_image( $this->get_user_image_data( $user_id ), home_url() . '/#personlogo' ); if ( $image_schema ) { $rtn_data['image'] = $image_schema; } if ( is_author() ) { $rtn_data['mainEntityOfPage'] = array( '@id' => $author_url . '#profilepage' ); } return $rtn_data; } }