Title: WP SMS Functions
Author: Gri
Published: <strong>2019 年 7 月 4 日</strong>
Last modified: 2023 年 10 月 31 日

---

搜索插件

![](https://ps.w.org/wp-sms-functions/assets/banner-772x250.png?rev=2117366)

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://ps.w.org/wp-sms-functions/assets/icon-256x256.png?rev=2117366)

# WP SMS Functions

 作者：[Gri](https://profiles.wordpress.org/grilabs/)

[下载](https://downloads.wordpress.org/plugin/wp-sms-functions.zip)

 * [详情](https://cn.wordpress.org/plugins/wp-sms-functions/#description)
 * [评价](https://cn.wordpress.org/plugins/wp-sms-functions/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/wp-sms-functions/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/wp-sms-functions/#developers)

 [支持](https://wordpress.org/support/plugin/wp-sms-functions/)

## 描述

This simple plugin developed for developers.
 Can not be used alone! yet, it does
not have an end-user feature.

It completes your sms settings once and you can now use SMS functions in all WordPress.

You can add new SMS provider to `inc/providers` folder. `Netgsm_Provider.php` may
be example for you! For more detail please write us: wp@gri.net This example provider
use WordPress [HTTP API](https://developer.wordpress.org/plugins/http-api/) with
GET method. Connect provider API url and processes the results.

#### How to use?

Again it is worth mentioning, this is a developer plugin. You can’t use this plug-
in as an end-user.

 * For SMS sending: Use `wp_sms_send_sms($receiver_number, $message)`. If this function
   unknowned, you can include file `ABSPATH . '/wp-content/plugins/wp-sms-functions/
   inc/functions.php'`. Including too many times will not cause problems. It will
   protect itself against it.

## 安装

This section describes how to install the plugin and get it working.

 1. Upload the plugin files to the `/wp-content/plugins/wp-sms-functions` directory,
    or install the plugin through the WordPress plugins screen directly.
 2. Activate the plugin through the ‘Plugins’ screen in WordPress
 3. Use the Settings->SMS Provider screen to configure the plugin
 4. Select your SMS provider(SMS operator) and fill required settings. If you entered
    incorrect credentials for SMS account, you can see error message in this screen.
 5. After successfully installation, you can use SMS functions in everywhere of WP.

## 常见问题

### How to add new provider to use?

 * First, clone example provider file(`inc/providers/Netgsm_Provider.php`) as your
   provider name in `inc/providers` directory. All of php files in this directory
   will be included with [WP init action](https://codex.wordpress.org/Plugin_API/Action_Reference/init).
 * Set your provider name and slug in `__construct` and set settings fields in `
   fields` method. In `settings` method, you must input fields for settings page.
 * Lastly create or modify `send_sms` method in your provider class. You can get
   options and trigger to send SMS.

## 评价

此插件暂无评价。

## 贡献者及开发者

「WP SMS Functions」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Gri ](https://profiles.wordpress.org/grilabs/)

[帮助将「WP SMS Functions」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/wp-sms-functions)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/wp-sms-functions/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/wp-sms-functions/)，或通过[RSS](https://plugins.trac.wordpress.org/log/wp-sms-functions/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/wp-sms-functions/)。

## 更新日志

#### 1.2.7

 * Asist SMS provider added.

#### 1.2.6

 * Gri SMS provider updated.

#### 1.2.5

 * Gri SMS provider updated.

#### 1.2.4

 * Gri SMS provider added.
 * Verimor provider some improvements.

#### 1.2.3

 * Improvements for NetGSM operator.

#### 1.2.2

 * Added new provider: BatmanTopluSMS
 * Some small bugs fixed.

#### 1.2.1

 * Added new provider: UygunSMS

#### 1.2

 * Added new provider: BizimSMS
 * All providers migrated to new version.
 * NetGSM SOAP method added.
 * NEW FEATURE: Debug mode
 * NEW FEATURE: Send test SMS

#### 1.1.2

 * Added new provider: Mobildev

#### 1.1

 * Added new providers: Iletimerkezi, Jetsms, Mutlucell
 * cURL Post method created.

#### 1.0

 * This is the launch version. No changes yet.

## 额外信息

 *  版本 **1.2.8**
 *  最后更新：**3 年前**
 *  活跃安装数量 **90+**
 *  WordPress 版本 ** 4.9 或更高版本 **
 *  已测试的最高版本为 **5.8.13**
 *  PHP 版本 ** 7.0 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/wp-sms-functions/)
 * 标签
 * [Send message](https://cn.wordpress.org/plugins/tags/send-message/)[sms](https://cn.wordpress.org/plugins/tags/sms/)
 *  [高级视图](https://cn.wordpress.org/plugins/wp-sms-functions/advanced/)

## 评级

尚未提交反馈。

[Your review](https://wordpress.org/support/plugin/wp-sms-functions/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/wp-sms-functions/reviews/)

## 贡献者

 *   [ Gri ](https://profiles.wordpress.org/grilabs/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/wp-sms-functions/)