Akismet::option_form()
Description #
Register options of Avatar addon.
Source #
File: addons/akismet/akismet.php
public static function option_form() {
$opt = ap_opt();
$form = array(
'submit_label' => __( 'Save add-on options', 'anspress-question-answer' ),
'fields' => array(
'spam_post_action' => array(
'label' => __( 'What to do when post is a spam?', 'anspress-question-answer' ),
'type' => 'select',
'options' => array(
'moderate' => __( 'Change status to moderate', 'anspress-question-answer' ),
'trash' => __( 'Trash the post', 'anspress-question-answer' ),
),
'value' => $opt['spam_post_action'],
),
),
);
return $form;
}
Expand full source code Collapse full source code View on GitHub: addons/akismet/akismet.php:87
Add your comment