beapi/wp-login-page
Composer 安装命令:
composer require beapi/wp-login-page
包简介
Customize the login page with CSS/images
README 文档
README
Introduction
This mu-plugin allows you enqueue style on login page. The plugin will look for styles into :
- dist/assets/login.css of the child theme
- dist/assets/login.css of the parent theme
- WP_DEFAULT_THEME/dist/assets/login.css
- WP_CONTENT_DIR/wp-login-page/login.css
Requirements
- WordPress > 4.7
- PHP > 5.6
Installation
From composer
composer require beapi/wp-login-page
From files
Just download the wp-login-page.php into your mu-plugins directory.
Changelog
2.0.2
- Use login_init hook instead of init (if wp-cerber is enabled, init hook seems to not be fired)
2.0.1
- Update dev dependencies
- Update the composer/installers constraint
2.0
- BREAKING CHANGES : Change path to default theme file path
dist/assets/login.csstodist/login.css
1.0.1
- Fix platform URL construction
- Add test on empty final file
1.0.0
- First release
Filters
wp_login_page_theme_css
Allows you to change the theme filepath.
If you need to change the filepath to theme/my_theme/assets/my-custom-login.css
<?php add_filter( 'wp_login_page_theme_css', function() { return 'assets/my-custom-login.css' ); });
wp_login_page_platform_css
Allows you to change the platform global filepath.
If you need to change the filepath to wp-content/customs/my-custom-login.css
<?php add_filter( 'wp_login_page_platform_css', function() { return 'customs/my-custom-login.css'; });
Customize the logo
Example of CSS for cutomizing the logo :
body.login h1 a { display: block; width: 100%; background-image: url(wapuu.png); background-repeat: no-repeat; background-position: center center; background-size: 103px; }
Contribute
Launch the local machine with lando:
npm installnpm run env:start- Open you browser at http://localhost:8888
beapi/wp-login-page 适用场景与选型建议
beapi/wp-login-page 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 15.28k 次下载、GitHub Stars 达 0, 最近一次更新时间为 2021 年 01 月 29 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 beapi/wp-login-page 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 beapi/wp-login-page 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 15.28k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 10
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0-or-later
- 更新时间: 2021-01-29