承接 wp-digital/wp-start-up 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

wp-digital/wp-start-up

最新稳定版本:1.0.0

Composer 安装命令:

composer require wp-digital/wp-start-up

包简介

WPStartUp plugin does initial setup after WordPress installation. Create projects in Bugsnag and Pingdom.

README 文档

README

Description

WPStartUp is a powerful tool that streamlines the initial setup process after installing WordPress. It enables you to effortlessly create projects in Bugsnag and Pingdom, enhancing your website's performance and monitoring capabilities.

Installation

There are two convenient ways to install WPStartUp:

  1. Using Composer: The recommended method is to use Composer. Simply run the following command:

    composer require wp-digital/wp-start-up

    WPStartUp will be installed as a Must Use Plugin by default. If you wish to customize the installation path, you can control it using extra.installer-paths in your composer.json.

  2. Using Git Clone: Alternatively, you can clone the repository directly into the wp-content/mu-plugins/ or wp-content/plugins/ directory. Follow these steps:

    cd wp-content/plugins/
    git clone git@github.com:wp-digital/wp-start-up.git
    cd wp-start-up/
    composer install

If you installed the plugin as a regular plugin, activate WPStartUp from the Plugins page in your WordPress dashboard or use WP-CLI: wp plugin activate wp-start-up.

Configuration

To configure WPStartUp, add the following constants to your wp-config.php file:

define( 'BUGSNAG_TOKEN', '' );
define( 'BUGSNAG_PROJECT', '' );

define( 'PINGDOM_TOKEN', '' );
define( 'PINGDOM_PROJECT', '' );

Please note that defining the BUGSNAG_API_KEY constant means the Bugsnag project is already created, and the plugin will not create a new one.

Usage

WPStartUp automatically creates projects in Bugsnag and Pingdom, boosting your website's performance monitoring capabilities. Should you wish to extend its functionality with new integrations, use the wp_start_up_integrations hook:

add_filter( 'wp_start_up_integrations', function( array $integrations ): array {
    $integrations[] = new YourCustomIntegration();

    return $integrations;
} );

Please ensure that your integration implements the WPD\WPStartUp\Interfaces\IntegrationInterface interface.

By default, WPStartUp stores plugin settings in the WordPress options table. If you prefer a custom storage solution, use the wp_start_up_default_storage filter:

add_filter( 'wp_start_up_default_storage', function(): \WPD\WPStartUp\Interfaces\StorageInterface {
    return new YourCustomStorage();
} );

Again, ensure that your custom storage implements the \WPD\WPStartUp\Interfaces\StorageInterface interface.

Additionally, WPStartUp uses the native wp_remote_request function to send API requests. If you want to use a different approach, you can modify this behavior using the wp_start_up_default_sender filter:

add_filter( 'wp_start_up_default_sender', function(): \WPD\WPStartUp\Interfaces\SenderInterface {
    return new YourCustomSender();
} );

Similarly, your custom sender should implement the \WPD\WPStartUp\Interfaces\SenderInterface interface.

With WPStartUp, you have the freedom to tailor your WordPress setup and integrate it seamlessly with other services, ensuring a smooth and efficient website management experience.

统计信息

  • 总下载量: 2.55k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 2
  • 依赖项目数: 2
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 8
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-2.0
  • 更新时间: 2023-07-25

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固