wpscholar/wp-context 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

wpscholar/wp-context

Composer 安装命令:

composer require wpscholar/wp-context

包简介

A WordPress context library based on WordPress' built-in template hierarchy.

README 文档

README

A WordPress context library based on WordPress' built-in template hierarchy.

What It Does

Designed to be used after the main WordPress query has run, this context library will return an array of slugs representing the current context.

How to Use It

  1. Add to your project via Composer:
$ composer require wpscholar/wp-context
  1. Make sure you have added the Composer autoloader to your project:
<?php 

require __DIR__ . '/vendor/autoload.php';
  1. Call the static method for fetching context:
<?php

use wpscholar\WordPress\Context;

$context = Context::getContext();

统计信息

  • 总下载量: 60
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 0
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

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

其他信息

  • 授权协议: GPL-2.0
  • 更新时间: 2017-09-15

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固