Module: WpWrapper::Modules::Plugins::Akismet

Included in:
WpWrapper::Modules::Plugins
Defined in:
lib/wp_wrapper/modules/plugins/akismet.rb

Instance Method Summary collapse

Instance Method Details

#configure_akismet(api_key) ⇒ Object



6
7
8
9
10
11
12
# File 'lib/wp_wrapper/modules/plugins/akismet.rb', line 6

def configure_akismet(api_key)
  options     =   {
    :key                      =>  {:value     =>  api_key,  :type   =>  :input}
  }

  response    =   set_options_and_submit("options-general.php?page=akismet-key-config", {:id => 'akismet-enter-api-key'}, options)
end