定制 jaywood/jw-shortcode-scraper 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

jaywood/jw-shortcode-scraper

Composer 安装命令:

composer require jaywood/jw-shortcode-scraper

包简介

A WP-CLI script to scrape all blog posts for shortcodes ( registered or not ) and provides you a report after complete with CSV capability.

README 文档

README

This is a shortcode scraper with multisite compatability. The scraper will walk over any site you specify looking for shortcodes. All found shortcodes in posts will be put together for a report, which is output at the end of the operation.

Pull requests are always welcome

Screenshots

( showing the output in console )

( showing the resulting CSV output )

Usage

Installation - Composer

composer require jaywood/jw-shortcode-scraper

If you happen to use the sweet Composer Installers library, this CLI script is marked as a wp-cli-package for ease of use later.

Installation - Manual

  1. Download or clone the repository to wp-content/mu-plugins/jw-wpcli-shortcode-scraper/ ( Name is up to you )
  2. Create a new file in wp-content/mu-plugins call it whatever you want, I use init.php
  3. Require the file like so:
<?php

if ( defined( 'WP_CLI' ) && WP_CLI ) {
    require_once 'jw-wpcli-shortcode-scraper/jw-shortcode-scraper.php';
}

Now since your init.php file is in wp-content/mu-plugins it will always load.

Command Syntax

  • wp jw-shortcode-scraper scrape [--export] [--site=<slug>]
  • export - Exports to a csv file, if possible, relative to the current directory.
  • site - Use any site in a multi-site environment, like if you have a sub-site called favorite-dogs it would be --site=favorite-dogs

( A wp-cli plugin by Jay Wood )

统计信息

  • 总下载量: 146
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 53
  • 点击次数: 5
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 53
  • Watchers: 1
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-3.0-or-later
  • 更新时间: 2018-09-29

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固