novuso/novuso-wp-common 问题修复 & 功能扩展

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

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

novuso/novuso-wp-common

最新稳定版本:0.2.1

Composer 安装命令:

composer require novuso/novuso-wp-common

包简介

Common libraries for Novuso WordPress development

README 文档

README

Registers common libraries to allow plugins and themes to share a common dependency in WordPress.

Goal

Register CSS and JavaScript libraries that are not available in WordPress core.

Installation

If you use Composer to manage WordPress dependencies, simply add the following line to your composer.json file:

"novuso/novuso-wp-common": "~0.2"

And run composer update and this plugin will be installed in your configured plugin folder using the composer/installers project.

If you are not using Composer, you can download this project and place the entire contents in a novuso-wp-common folder in your plugins folder. In that case, you will need to periodically update manually (which sort of defeats the purpose).

Usage

Just use the normal process to enqueue scripts and styles in WordPress.

The handle names listed below are registered once the plugin is active.

Here are some examples of how to load the assets in a theme functions.php file:

// functions.php
function mytheme_load_assets() {
    wp_enqueue_script('bootstrap');
    wp_enqueue_style('bootstrap');
    wp_enqueue_script('marionette');
}
add_action('wp_enqueue_scripts', 'mytheme_load_assets');

Project Maintained CSS

Project Maintained JavaScript

License

MIT

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: JavaScript

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-11-09

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固