承接 iranimij/wp-options-manager 相关项目开发

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

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

iranimij/wp-options-manager

最新稳定版本:1.0.6

Composer 安装命令:

composer require iranimij/wp-options-manager

包简介

You can easily manage your plugin's options by this library

README 文档

README

With this library, you can easily manage your plugin's options, in the best and most efficient way.

How to install the library

The recommended way to install this library in your project is by loading it through Composer:

composer require iranimij/wp-options-manager

How to use this library

// Updating an option
wp_options_manager()->update( 'test-option-key', 'test-option-value' )->save();

// Updating two options in a row
wp_options_manager()->update( 'test-option-key', 'test-option-value' )->update( 'test-option-key2', 'test-option-value2' )->save();

// Updating multiple keys in just one array
wp_options_manager()->update( [
    'first-key' => 'first-value',
    'second-key' => 'second-value',
    'third-key' => 'third-value',
] )->save();

// Getting an option => Output = 'test-option-value
wp_options_manager()->select( 'test-option-key' );

// Deleting an option
wp_options_manager()->delete( 'test-option-key' );

Where can we find the data in the database

All data are saved in one key in options table in the database. the key name is totally equal to the slug of your plugin. the name will be chosen automatically.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-12-07

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固