undefinedfr/linky
Composer 安装命令:
composer require undefinedfr/linky
包简介
WordPress Plugin to create Link Hub Page
README 文档
README
Version : 1.4.9
Author : Nicolas RIVIERE
Description :
Linky is a free module offering to create a landing page containing all the links you want.
It works like Linktree, Later or others but directly in your website. Much better for your SEO ;)
With Linky, you can:
- Choose a theme for your page
- Customize your page with title, avatar, background color, gradients, link color...ect
- Add social links in your page
- Choose menu for your page
- Choose border, text and background color for your links
- Add label in your links
- Add category in your links
- Add separator between links
- Add analytics code for your page
- Choose avatar for your header page
- Choose title for your header page
- Choose text and background color for your header page
- Choose text and background color for your body page
- Show page render in admin panel
Installation :
This section describes how to install the plugin and get it working.
e.g.
- Upload the plugin files to the
/wp-content/plugins/plugin-namedirectory, or install the plugin through the WordPress plugins screen directly. - Activate the plugin through the 'Plugins' screen in WordPress
- Use the Settings->Plugin Name screen to configure the plugin
- Configure plugin in Linky menu
Types :
You can override link type
How to add type :
wp-content/themes/{THEME_NAME}/linky/views/fields/custom.php - For field wp-content/themes/{THEME_NAME}/linky/views/render/custom.php - For render view wp-content/themes/{THEME_NAME}/linky/assets/icons/dialogfeed.svg - For icon
Actions
linky_after_construct
- object $this Linky object
Definition:
Do something after class initialisation
Exemple:
function on_linky_after_construct() {
// Do something
}
add_action( 'linky_after_construct', 'on_linky_after_construct', 10, 1 );
--
linky_install
Definition:
Do something after plugin install
Exemple:
function on_linky_install() {
// Do something
}
add_action( 'linky_install', 'on_linky_install', 10, 1 );
--
linky_uninstall
Definition:
Do something after plugin uninstall
Exemple:
function on_linky_uninstall() {
// Do something
}
add_action( 'linky_uninstall', 'on_linky_uninstall', 10, 1 );
--
linky_before_admin_enqueue
Definition:
Do something before admin script enqueue
Exemple:
function on_linky_before_admin_enqueue() {
// Do something
}
add_action( 'linky_before_admin_enqueue', 'on_linky_before_admin_enqueue', 10, 1 );
--
linky_after_admin_enqueue
Definition:
Do something after admin script enqueue
Exemple:
function on_linky_after_admin_enqueue() {
// Do something
}
add_action( 'linky_after_admin_enqueue', 'on_linky_after_admin_enqueue', 10, 1 );
--
linky_before_enqueue
Definition:
Do something before front script enqueue
Exemple:
function on_linky_before_enqueue() {
// Do something
}
add_action( 'linky_before_enqueue', 'on_linky_before_enqueue', 10, 1 );
--
linky_after_enqueue
Definition:
Do something after front script enqueue
Exemple:
function on_linky_after_enqueue() {
// Do something
}
add_action( 'linky_after_enqueue', 'on_linky_after_enqueue', 10, 1 );
___
Filters
linky_menu_page_capalibilty
- string $capabilty default capability (
manage_options)
Definition:
Override admin page capability
Exemple:
function on_linky_menu_page_capalibilty( $capabilty ) {
return $capabilty;
}
add_filter( 'linky_menu_page_capalibilty', 'on_linky_menu_page_capalibilty', 10, 1 );
--
linky_submenu_appareance_page_capalibilty
- string $capabilty default capability (
manage_options)
Definition:
Override admin submenu Appareance page capability
Exemple:
function on_linky_submenu_appareance_page_capalibilty( $capabilty ) {
return $capabilty;
}
add_filter( 'linky_submenu_appareance_page_capalibilty', 'on_linky_submenu_appareance_page_capalibilty', 10, 1 );
--
linky_submenu_social_page_capalibilty
- string $capabilty default capability (
manage_options)
Definition:
Override admin submenu Social page capability
Exemple:
function on_linky_submenu_social_page_capalibilty( $capabilty ) {
return $capabilty;
}
add_filter( 'linky_submenu_social_page_capalibilty', 'on_linky_submenu_social_page_capalibilty', 10, 1 );
--
linky_submenu_links_page_capalibilty
- string $capabilty default capability (
manage_options)
Definition:
Override admin submenu Links page capability
Exemple:
function on_linky_submenu_links_page_capalibilty( $capabilty ) {
return $capabilty;
}
add_filter( 'linky_submenu_links_page_capalibilty', 'on_linky_submenu_links_page_capalibilty', 10, 1 );
--
linky_submenu_themes_page_capalibilty
- string $capabilty default capability (
manage_options)
Definition:
Override admin submenu Themes page capability
Exemple:
function on_linky_submenu_themes_page_capalibilty( $capabilty ) {
return $capabilty;
}
add_filter( 'linky_submenu_themes_page_capalibilty', 'on_linky_submenu_themes_page_capalibilty', 10, 1 );
--
linky_menu_icon
- string $menu_icon_path path to SVG icon
Definition:
Override front menu icon path (SVG)
Exemple:
function on_linky_menu_icon( $menu_icon_path ) {
return get_template_directory_uri() . '/assets/images/menu.svg';
}
add_filter( 'linky_menu_icon', 'on_linky_menu_icon', 10, 1 );
--
linky_header_title
- string $menu_icon_path path to SVG icon
Definition:
Override text title for specific theme ("My Links")
Exemple:
function on_linky_header_title( $title ) {
return __('Welcome');
}
add_filter( 'linky_header_title', 'on_linky_header_title', 10, 1 );
--
linky_avatar_image_size
- string $icon_image_size default image size
Definition:
Override avatar image size
Exemple:
function on_linky_avatar_image_size( $icon_image_size ) {
return 'large';
}
add_filter( 'linky_avatar_image_size', 'on_linky_avatar_image_size', 10, 1 );
--
linky_yoast_meta_wpseo_metadesc
- string $meta yoast meta
Definition:
Override yoast meta for your links page. Available for :
- wpseo_robots
- wpseo_canonical
- wpseo_metadesc
- wpseo_metakeywords
- wpseo_locale
- wpseo_opengraph_title
- wpseo_opengraph_desc
- wpseo_opengraph_url
- wpseo_opengraph_type
- wpseo_opengraph_image
- wpseo_opengraph_site_name
- wpseo_opengraph_admin
- wpseo_opengraph_author_facebook
- wpseo_opengraph_show_publish_date
- wpseo_twitter_title
- wpseo_twitter_description
- wpseo_twitter_card_type
- wpseo_twitter_site
- wpseo_twitter_image
- wpseo_twitter_creator_account
- wpseo_json_ld_output
Exemple:
function on_linky_avatar_image_size( $meta ) {
return $meta;
}
add_filter( 'linky_yoast_meta_wpseo_metadesc', 'on_linky_yoast_meta_wpseo_metadesc', 10, 1 );
___
undefinedfr/linky 适用场景与选型建议
undefinedfr/linky 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 15 次下载、GitHub Stars 达 2, 最近一次更新时间为 2020 年 09 月 08 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 undefinedfr/linky 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 undefinedfr/linky 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 15
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0-or-later
- 更新时间: 2020-09-08