WordPress.org

Ready to get started?Download WordPress

Plugin Directory

Gridster

Use Gridster to manage your content with ease in a customizable grid.

Arbitrary section

Filters and Hooks

You can adjust the behavior of this plugin by using following filters:

  • Change the get_post_types() call for usable post_types by filtering gridster_get_post_types_as_widget_blocks_args
  • Change final array of used post_types by modifying gridster_post_types_as_widget_blocks
  • Filter the list of visible / usable posts per post_type by hooking into gridster_get_posts_by_type_query_args
  • Adjust the naming convention for used templates by filtering gridster_locate_templates_from
  • Add custom CSS classes to each Gridster widget individually from a multiple select field enhanced by chosen.js, using the gridster_choose_from_custom_css_classes_for_widgets filter. The return of your applied function should be an array() like this array( 'alignleft' => __('Align text from left'), 'alignright' => __('Align text from right'), where the array_keys are the CSS classes to apply and the values are the readable text for you or your editors.
  • Change the capability, which allows users to overwrite the default settings for each gridster individually by filtering gridster_overwrite_post_options_with_cap. By default "edit_theme_options" is used.

Or you can hook in your own functionality by using the following action hooks:

  • Do something before and/or after the shortcode ouput by using gridster_before_shortcode_render or gridster_after_shortcode_render. Both action hooks come with three additional arguments you are able to work with, the $post_id, the $title and the $widgets_html of the current gridster-post.

Have a look inside the plugin file to see, what variables you are able to use within your filter hooks.

Translations

  • English (en_US)
  • German (de_DE)

Many Thanks goes out to

Requires: 3.3 or higher
Compatible up to: 3.6.1
Last Updated: 2013-4-22
Downloads: 10,606

Ratings

3 stars
3.6 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

50,2,1 100,1,1 100,1,1 50,2,1 100,1,1 100,3,3
0,3,0