Wiki
Clone wikiRWM Option / Home
RWM Option
Easily manage your Theme Options with a friendly admin interface inside WordPress. Also supports individual post, page, and custom post type options through a post meta box.
API
Below are the list of API functions to that are currently supported to communicate with the plugin.
rwm_option
Returns the option value by passing through an option key as an argument.
rwm_option(key)
Parameter
key
The assigned key of an option in either the Theme Options page or the post meta box area.
List of Option Keys in Post/Page/Custom Post
post_heading
post_heading_alignment
post_tagline
post_tagline_alignment
post_action_url
post_action_text
show_sidebar
show_comments
show_slider
show_action_button
List of Option Keys in Theme Options
- Social Profiles
- Branding Information
- Fonts & Colors
- Blog Manager
- Contact Page
- Category & Archive
- Post Inclusion
- Slider Manager
rwm_show_sidebar
Returns the visibility status of the sidebar.
rwm_show_sidebar()
rwm_show_comments
Returns the visibility status of the comment list and comment box.
rwm_show_comments()
rwm_get_fonts
Returns a multidimensional array of font attributes (Size, Face, Style, Color).
rwm_get_fonts()
rwm_extract_font_family
Returns a pre-formatted value to use in CSS font-family property.
rwm_extract_font_family(font_face)
Parameter
There is only one parameter to pass through.
font_face
A font face or the value of the face
index in the rwm_option('font_XXXXXX')
returned array.
rwm_extract_font_link
Returns a clean value to use as the family parameter in Google Web Fonts.
rwm_extract_font_link(font_face)
Parameter
Same as / See rwm_extract_font_family
Updated