AnsPress_Bad_words::init()
Description #
Initialize the plugin by setting localization and loading public scripts and styles.
Source #
File: addons/free/bad-words.php
public static function init() { anspress()->add_action( 'ap_before_inserting_question', __CLASS__, 'before_inserting_question', 10, 2 ); anspress()->add_action( 'ap_before_updating_question', __CLASS__, 'before_inserting_question', 10, 2 ); anspress()->add_action( 'ap_before_inserting_answer', __CLASS__, 'before_inserting_question', 10, 2 ); anspress()->add_action( 'ap_before_updating_answer', __CLASS__, 'before_inserting_question', 10, 2 ); anspress()->add_action( 'ap_option_groups', __CLASS__, 'options' ); }
Expand full source code Collapse full source code View on GitHub: addons/free/bad-words.php:39
Add your comment