doiftrue/wp-kama-seo-tags
Composer 安装命令:
composer require doiftrue/wp-kama-seo-tags
包简介
Simple SEO class for WordPress to create page metatags: title, description, robots, keywords, Open Graph.
关键字:
README 文档
README
Simple SEO class for WordPress to create page metatags: title, description, robots, keywords, og:____ (Open Graph).
Instalation
composer require doiftrue/wp-kama-seo-tags
Usage
Just init the class.
$Kama_SEO_Tags = Kama_SEO_Tags::init();
Meta-fields in the admin panel
Important
IMPORTANT: The code does not add meta-fields in the admin panel!
The code above only processes (outputs) the necessary SEO meta-tags - it does not add meta-fields to the post or taxonomy term editing page. Such meta-fields need to be created separately.
On the post or term editing page, you need to create a meta box with the following meta-fields:
-
title- an alternative SEO title that will be used in the<title>meta-tag instead of the post title. -
description- description for the page. If not available, the text from the excerpt will be used, and if that is also not available, a snippet from the beginning of the post content will be used.meta_description- this is how the description meta-field for terms should be named, because thedescriptionkey is already used for taxonomies...
-
keywords- keywords meta-tag. I'm not sure if it's needed in modern realities. -
robots- the specified value is output as is, for example,noindex,nofollow.
Issues
If it doesn't work, you need to make sure that the wp_head() function is being used in the header.php theme file and that it does not output the hard-coded <title> tag and other SEO tags.
For more details see: https://wp-kama.ru/9537
Changelog
1.9.15 - 16-07-2023
- IMP: PHP Warning fix.
1.9.14 - 28-06-2023
- NEW:
composer.jsonadded. And module added to Packagist. - NEW: Default EN translations added.
- CHG:
year,month,daykeys added to localisation strings.archivekey was removed. - IMP: Better support for
document_title_partsWP hook. - IMP: Minor refactoring and improvements.
1.9.13 - 1-06-2022
- IMP: Minor improvements.
1.9.8 - 25-10-2021
- CHG: Disable function wptexturize() convert_chars() for title.
- NEW: hook
kama_meta_keywords.
1.6 - 13-12-2020
- IMP: Paged becomes real part of implode.
- NEW:
$pagedparameter added tokama_meta_titlehook.
1.5 - 01-12-2020
- IMP:
get_term_meta()for meta_robots(). Simplify the code of meta_robots(). - CHG: Hook
kama_meta_robots_closerenamed tokama_meta_robots
1.4 - 27.11.2020
- NEW: Изменил логику
og_meta(): - NEW: Теперь все собирается в массив.
- NEW: Появился хук
pre_kama_og_meta_image. - NEW: ВАЖНО! Переименован хук
kama_og_meta_thumb_idнаkama_og_meta_image. - NEW: Появился хук
kama_og_meta_elements_values.
doiftrue/wp-kama-seo-tags 适用场景与选型建议
doiftrue/wp-kama-seo-tags 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 58 次下载、GitHub Stars 达 8, 最近一次更新时间为 2023 年 06 月 28 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「wordpress」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 doiftrue/wp-kama-seo-tags 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 doiftrue/wp-kama-seo-tags 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 doiftrue/wp-kama-seo-tags 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Must-use plugin integrating WordPress with the Upsun platform: environment awareness, router-cache friendliness, safe preview clones, deploy migrations, Site Health checks, and a wp upsun CLI command.
Inertia.js server-side adapter for PHP. Handles full visits, Inertia XHR visits, asset-version 409 handshakes and partial reloads. Framework-agnostic, with transparent WordPress integration.
Adds Cache-Tag HTTP response headers for singular WordPress content and purges Cloudflare by tag when content changes.
AI Chatbot & Helpdesk Agent for WooCommerce. Connects your store to Egentify for AI-powered chat, order tracking, email, and ticketing.
MIDDAG's reference architecture for a WordPress plugin — composes the OSS framework/wordpress/ui libraries end to end.
Assets helper package for the Hybrid Core framework.
统计信息
- 总下载量: 58
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 8
- 点击次数: 21
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-06-28