[wordpress插件] Announce from the Dashboard从仪表板宣布

wordpress 插件 文章 2020-02-18 19:40 588 0 全屏看文

AI助手支持GPT4.0

评分
86
描述

This plugin to show announce for per user roles.

This plugin to show announce for per user roles.

And, if you want to change plugin capability, please refer to this code.

And, if you want to change plugin capability, please refer to this code.

For example add filter:

For example add filter:

function afd_custom_change_capability( $capability ) {    

  function afd_custom_change_capability ($ capability) {    

// plugin minimum capability    

// plugin minimum capability    

$capability = 'edit_posts';    

$ capability = 'edit_posts';    

return $capability;

return $ capability;

}

}

add_filter( 'afd_capability_manager' , 'afd_custom_change_capability' );

add_filter ('afd_capability_manager', 'afd_custom_change_capability');

And, if you want to add filter, please refer to this code.

And, if you want to add filter, please refer to this code.

For example add filter:

For example add filter:

function afd_custom_filter( $announces ) {    

  function afd_custom_filter ($ announces) {    

// filter    

// filter    

return $announces;

return $ announces;

}

}

add_filter( 'afd_before_announce' , 'afd_custom_filter' );

add_filter ('afd_before_announce', 'afd_custom_filter');

日本語でのご説明

Explanation in Japanese

このプラグインは、ダッシュボードにお知らせを表示するプラグインです。

This plugin is a plugin that displays notifications on the dashboard.



ユーザーの権限グループ別に、編集者のみへの表示、

Visibility to editors only, by user's permission group,

投稿者と寄稿者と購読者のみに表示する設定もできます。

You can choose to show it only to contributors, contributors and subscribers.

安装步骤

    1. Upload the full directory to the /wp-content/plugins/ directory.
    2. 将完整目录上载到 / wp-content / plugins / 目录。

    3. Activate the plugin through the ‘Plugins’ menu in WordPress.
    4. 通过WordPress中的“插件”菜单激活插件。

    5. Go to WP-Admin -> Settings -> Announcement settings for Dashboard to configure the plugin.
    6. 转到 WP-Admin->设置->仪表板的公告设置来配置插件。

下载地址
https://downloads.wordpress.org/plugin/announce-from-the-dashboard.1.5.1.zip
-EOF-

AI助手支持GPT4.0