Module: WpWrapper::Modules::Options
- Included in:
- Client
- Defined in:
- lib/wp_wrapper/modules/options.rb
Instance Method Summary collapse
- #disable_comments_and_trackbacks ⇒ Object
- #set_blog_description(description) ⇒ Object
- #set_options(type, options = {}) ⇒ Object
Instance Method Details
#disable_comments_and_trackbacks ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/wp_wrapper/modules/options.rb', line 9 def disable_comments_and_trackbacks = { :default_pingback_flag => {:checked => false, :type => :checkbox}, :default_ping_status => {:checked => false, :type => :checkbox}, :default_comment_status => {:checked => false, :type => :checkbox}, :comments_notify => {:checked => false, :type => :checkbox}, :moderation_notify => {:checked => false, :type => :checkbox} } return (:discussion, ) end |
#set_blog_description(description) ⇒ Object
5 6 7 |
# File 'lib/wp_wrapper/modules/options.rb', line 5 def set_blog_description(description) return (:general, {:blogdescription => {:value => description, :type => :input}}) end |
#set_options(type, options = {}) ⇒ Object
21 22 23 24 |
# File 'lib/wp_wrapper/modules/options.rb', line 21 def (type, = {}) url = get_url("#{type}_options".to_sym, absolute: false, admin_prefix: '') return (url, {action: /options\.php/i}, ) end |