* Plugin Name: JJBYB SEO Enhancement * Description: Open Graph 标签 + JSON-LD 结构化数据 + 图片alt补齐(zibll 主题SEO增强) * Version: 1.1 */ if (!defined('ABSPATH')) exit; // ---------- Open Graph / Twitter Card ---------- add_action('wp_head', function () { if (is_feed()) return; if (is_front_page()) { $title = get_bloginfo('name') . '-' . get_bloginfo('description'); $d = get_option('zibll_options'); if (!empty($d['tdk_home_description'])) $desc = $d['tdk_home_description']; elseif (!empty($d['description'])) $desc = $d['description']; else $desc = get_bloginfo('description'); $url = home_url('/'); $type = 'website'; } elseif (is_singular()) { $title = wp_get_document_title(); $desc = get_post_meta(get_the_ID(), 'description', true); if (!$desc) $desc = wp_trim_words(wp_strip_all_tags(get_the_content()), 80, ''); $url = get_permalink(); $type = 'article'; } elseif (is_category()) { $title = wp_get_document_title(); $desc = wp_trim_words(wp_strip_all_tags(category_description()), 90, ''); $url = get_category_link(get_query_var('cat')); $type = 'website'; } else { $title = wp_get_document_title(); $desc = get_bloginfo('description'); $url = home_url('/'); $type = 'website'; } $site_name = get_bloginfo('name'); $image = ''; if (is_singular()) { $image = get_post_meta(get_the_ID(), 'thumbnail_url', true); if (!$image) $image = get_post_meta(get_the_ID(), 'cover_image', true); } if (!$image || !is_string($image)) $image = 'https://jjbyb.com/wp-content/uploads/2026/01/logo白天-新.png'; echo PHP_EOL; $tags = [ ['property' => 'og:site_name', 'content' => $site_name], ['property' => 'og:type', 'content' => $type], ['property' => 'og:title', 'content' => $title], ['property' => 'og:description', 'content' => $desc], ['property' => 'og:url', 'content' => $url], ['property' => 'og:image', 'content' => $image], ['property' => 'og:locale', 'content' => 'zh_CN'], ['name' => 'twitter:card', 'content' => 'summary_large_image'], ['name' => 'twitter:title', 'content' => $title], ['name' => 'twitter:description', 'content' => $desc], ['name' => 'twitter:image', 'content' => $image], ]; foreach ($tags as $t) { $k = isset($t['property']) ? 'property' : 'name'; if ($t['content'] === '' || $t['content'] === null) continue; printf('' . PHP_EOL, $k, esc_attr($t[$k]), esc_attr($t['content'])); } }, 5); // ---------- JSON-LD 结构化数据 ---------- add_action('wp_head', function () { if (is_singular('post')) { global $post; $img = get_post_meta($post->ID, 'thumbnail_url', true); if (!$img) $img = get_post_meta($post->ID, 'cover_image', true); if (!$img) $img = 'https://jjbyb.com/wp-content/uploads/2026/01/logo白天-新.png'; $ld = [ '@context' => 'https://schema.org', '@type' => 'Article', 'headline' => wp_get_document_title(), 'image' => [$img], 'datePublished' => get_the_date('c', $post), 'dateModified' => get_the_modified_date('c', $post), 'author' => ['@type' => 'Organization', 'name' => get_bloginfo('name')], 'publisher' => ['@type' => 'Organization', 'name' => get_bloginfo('name'), 'logo' => ['@type' => 'ImageObject', 'url' => 'https://jjbyb.com/wp-content/uploads/2026/01/logo白天-新.png']], 'mainEntityOfPage' => ['@type' => 'WebPage', '@id' => get_permalink($post)], ]; echo '' . PHP_EOL; } if (is_front_page()) { $ld = [ '@context' => 'https://schema.org', '@type' => 'WebSite', 'name' => get_bloginfo('name'), 'url' => home_url('/'), 'description' => get_bloginfo('description'), 'potentialAction' => ['@type' => 'SearchAction', 'target' => home_url('/?s={search_term_string}'), 'query-input' => 'required name=search_term_string'], ]; echo '' . PHP_EOL; } }, 6); // ---------- 全站图片 alt 补齐(无alt时用上下文标题) ---------- add_filter('the_content', function ($content) { $title = esc_attr(get_the_title()); if (!$title) return $content; return preg_replace('/]*alt=)[^>]*)>/i', '', $content); }, 20); add_filter('wp_get_attachment_image', function ($html) { $title = esc_attr(get_the_title()); if ($title && strpos($html, 'alt=') === false) { $html = str_replace('[\d]+)'])) unset($endpoints['/wp/v2/users/(?P[\d]+)']); return $endpoints; }, 99); // 2. ???? url ??????????REST/?????? add_filter('get_the_author_url', function ($url) { if ($url && strpos($url, 'boundkey.com') !== false) return ''; return $url; }, 20); // [jjbyb] REST users protection: block guest access (anti username/gravatar-hash enumeration) add_filter('rest_endpoints', function ($endpoints) { if (is_user_logged_in()) return $endpoints; if (isset($endpoints['/wp/v2/users'])) unset($endpoints['/wp/v2/users']); if (isset($endpoints['/wp/v2/users/(?P[\d]+)'])) unset($endpoints['/wp/v2/users/(?P[\d]+)']); return $endpoints; }, 99); // [jjbyb] strip legacy boundkey.com url from author url output add_filter('get_the_author_url', function ($url) { if ($url && strpos($url, 'boundkey.com') !== false) return ''; return $url; }, 20); 裙装-姐姐白又白 首页 街拍美女 高跟 丝袜 美腿 牛仔 吊带 包臀 开通会员 开通黄金会员全站资源可看(一年)开通黄金会员 开通钻石会员全站资源可见(永久)开通钻石会员 登录注册 首页 街拍美女 高跟 丝袜 美腿 牛仔 吊带 包臀 开通会员 尊享会员权益登录注册找回密码 裙装共874篇排序更新浏览点赞评论主题高清写真,网盘速发(16)这组写真以高清写真为核心亮点,画面中裙装美女元素与模特气质的碰撞令人过目难忘。摄影师通过多角度构图与自然光影的配合,将高清写真的质感与层次细腻呈现。原图分辨率6336×9504,画质细腻锐...付费资源¥2街拍美女6小时前02015白裙高清图集,细节拉满(3)白裙题材的摄影作品,凭借白裙这一视觉焦点,成为近期的人气之选。每一张照片都经过精心构图,白裙的表现力被充分放大。全套原图分辨率5504×8256,付费解锁后即可获得网盘下载链接,收藏价值十...付费资源¥2街拍美女6小时前02115精选写真,超清无水印(48)高清镜头下的裙装美女写真,高清写真与时尚造型的融合呈现出极具冲击力的视觉效果。高清原片完整保留了画面的色彩层次与皮肤质感,观赏体验极佳。购买本图集即可获得5504×8256超清原图,无压缩...付费资源¥2街拍美女6小时前03615红裙主题高清写真,原图直出(2)一组红裙主题的高清街拍写真,红裙与时尚造型的融合是画面最大的看点。从整体氛围到局部细节,这组红裙写真都体现出扎实的拍摄水准。购买本图集即可获得5504×8256超清原图,无压缩、无水印,适...付费资源¥2街拍美女6小时前03815包臀高清图集,收藏级画质(2)包臀写真一向人气居高不下,这组作品将包臀的吸引力拉满。自信的姿态配上包臀的加持,整组画面充满成熟魅力。购买本图集即可获得5504×8256超清原图,无压缩、无水印,适合壁纸收藏与摄影参考。...付费资源¥2包臀街拍美女6小时前04015美图合集,摄影参考首选(12)高清镜头下的裙装美女写真,高清写真带来的视觉记忆点呈现出极具冲击力的视觉效果。高清原片完整保留了画面的色彩层次与皮肤质感,观赏体验极佳。本组图片为付费图集,原图分辨率高达5504×8256...付费资源¥2街拍美女6小时前02015精选写真,超清无水印(26)这组写真以高清写真为核心亮点,高清写真与时尚造型的融合令人过目难忘。摄影师通过多角度构图与自然光影的配合,将高清写真的质感与层次细腻呈现。购买本图集即可获得5504×8256超清原图,无压...付费资源¥2街拍美女6小时前03715高清写真集,一次看够(38)这组写真以清纯为核心亮点,画面中裙装美女元素与模特气质的碰撞令人过目难忘。画面中的模特身材比例出众,清纯在高清镜头下细节清晰、纤毫毕现。购买本图集即可获得5504×8256超清原图,无压缩...付费资源¥2街拍美女6小时前04415精选包臀写真,超清无水印(2)一组以包臀为主题的大片,模特与包臀风格造型的完整呈现,气场全开。模特的身材条件极为出众,包臀在光影勾勒下更显吸睛。本组图片为付费图集,原图分辨率高达5504×8256,购买后可通过网盘链接...付费资源¥2包臀6小时前02015高清高跟写真集,限时上架(8)模特与高跟风格造型的完整呈现,是这组高跟写真最打动人的地方。模特与高跟风格造型的完整呈现,配合时尚的造型搭配,整体观感高级而不落俗套。超清5504×8256原图打包出售,购买后网盘链接永久...付费资源¥2高跟6小时前04015加载更多 本站同款主题模板 zibll子比主题是一款漂亮优雅的网站主题模板,功能强大,配置简单。 查看详情 在手机上浏览此页面 登录没有账号?立即注册用户名或邮箱登录密码记住登录找回密码登录注册已有账号,立即登录设置用户名设置密码重复密码注册 主题模板推荐本站采用子比主题建站 zibll子比主题是一款漂亮优雅的商城资讯类网站主题模板,功能强大,配置简单 这是一条系统弹窗通知示例 管理员可在主题设置-常用功能-弹窗通知中进行相关设置 了解子比主题立即设置
本站采用子比主题建站
zibll子比主题是一款漂亮优雅的商城资讯类网站主题模板,功能强大,配置简单