Methods → SetContextArgs
Override arguments for a given context. Similar to add_filter, but more localized.
Description
void Atom::app()->SetContextArgs($context, $args)
So far, valid contexts are:
- document_title
- Advanced settings for the document title generator
- related_posts
- Changes to the related post query
- LOCATION_menu
- Specific menu location settings
- widget_NAME_defaults
- Default settings for a specific widget
- widget_NAME_templates
- Templates for a specific widget
- pagenavi
- Page navigation settings
- post_content
- Post content filter settings
Example
Atom::app()->SetContextArgs('pagenavi',
array(
'type' => 'numbers',
'pages_to_show' => 3,
'status' => true,
'prev_next' => true,
)
);
Last revision 14 years