Banner Opengraph

Event Lightbox dragStart

Lightbox dragStart This event is triggered when draging starts and lightbox starts scrolling Argument Type Description event object Original event object [pastacode lang=”javascript” manual=”wpgb.lightbox.on(%20’dragStart’%2C%20function(%20event%20)%20%7B%0A%09%0A%09console.log(%20’dragStart’%2C%20event%20)%3B%0A%0A%7D%20)%3B” message=”” highlight=”” provider=”manual”/]

Banner Opengraph

Actie bijgewerkt

/updated This action is fired when the plugin update process is completed. [pastacode lang=”php” manual=”function%20prefix_plugin_updated()%20%7B%0A%0A%09%2F%2F%20Run%20any%20action%20you%20need%20here.%0A%0A%7D%0A%0Aadd_action(%20’wp_grid_builder%2Fupdated’%2C%20’prefix_plugin_updated’%20)%3B” message=”” highlight=”” provider=”manual”/]

Banner Opengraph

Filter kaartanimaties

/card/animations This filter allows to add custom animations to reveal cards in a grid. Argument Type Description $animations array Holds registered card animations [pastacode lang=”php” manual=”function%20prefix_register_card_animations(%20%24animations%20)%20%7B%0A%0A%09%2F%2F%20’my_animation’%20corresponds%20to%20the%20animation%20slug.%20%0A%09%24animations%5B’my_animation’%5D%20%3D%20%5B%20%0A%09%09’name’%20%3D%3E%20__(%20’My%20Animation’%2C%20’text-domain’%20)%2C%0A%09%09’visible’%20%3D%3E%20%5B%20%0A%09%09%09’transform’%20%3D%3E%20’perspective(2000px)%20translateY(0)%20rotateY(0)%20scale(1)’%2C%0A%09%09%09’opacity’%20%3D%3E%201%2C%20%0A%09%09%5D%2C%0A%09%09’hidden’%20%3D%3E%20%5B%20’transform-origin’%20%3D%3E%20’50%25%2050%25’%2C%0A%09%09’transform’%20%3D%3E%20’perspective(2000px)%20translateY(-200px)%20rotateY(-360deg)%20scale(0.8)’%2C%20%0A%09%09’opacity’%20%3D%3E%200%2C%20%0A%09%09%5D%2C%20%0A%09%5D%3B%20%0A%0A%09return%20%24animations%3B%0A%0A%7D%0A%0Aadd_filter(%20’wp_grid_builder%2Fcard%2Fanimations’%2C%20’prefix_register_card_animations’%2C%2010%2C%201%20)%3B” message=”” highlight=”” provider=”manual”/]

Banner Opengraph

Filter argumenten voor rasterquery's

/grid/query_args This filter is called before the grid query is ran to fetch posts, terms or users. It allows to dynamically change the query args of WP_Query , WP_Term_Query or WP_User_Query Argument Type Description $query_args array Holds query arguments $grid_id integer Grid id [pastacode lang=”php” manual=”function%20prefix_query_args(%20%24query_args%2C%20%24grid_id%20)%20%7B%0A%0A%09%2F%2F%20If%20it%20matches%20grid%20id%201%2C%20we%20exclude%20post%20IDs%201%2C2%2C3%2C4.%20%0A%09if%20(%201%20%3D%3D%3D%20%24grid_id%20)%20%7B%20%24query_args%5B’post__not_in’%5D%20%3D%20%5B%201%2C%202%2C%203%2C%204%20%5D%3B%0A%0A%09%7D%0A%0A%09return%20%24query_args%3B%0A%0A%7D%0A%0Aadd_filter(%20’wp_grid_builder%2Fgrid%2Fquery_args’%2C%20’prefix_query_args’%2C%2010%2C%202%20)%3B” message=”” highlight=”” provider=”manual”/]

Banner Opengraph

JS-evenementen

JS Events JS Events are triggered every time change occurs. It can be triggered by an user interaction or reflects a programmatically change. Events are emitted in certain order as described in this documentation. Events can be catched directly in your grid settings or in your own JS script. All Event examples presented in this…

Banner Opengraph

Actie geladen

/loaded This action is fired when the plugin is loaded and instantiated before to be initialized. [pastacode lang=”php” manual=”function%20prefix_plugin_loaded()%20%7B%0A%09%0A%09%2F%2F%20Run%20any%20action%20you%20need%20here.%0A%09%0A%7D%0A%0Aadd_action(%20’wp_grid_builder%2Floaded’%2C%20’prefix_plugin_loaded’%20)%3B” message=”” highlight=”” provider=”manual”/]

Banner Opengraph

Filter indexer index object

/ indexer / index_object Dit filter wordt aangeroepen voordat een facetobject (bericht, term of gebruiker) wordt geïndexeerd. Het maakt het mogelijk om het standaard indexsysteem te omzeilen door een aangepaste array te retourneren die ten minste één rij bevat (om in de indextabel in te voegen) met een facet_waarde en facet_naam. Als een lege waarde is ingesteld op de facet_value, rij ...

Banner Opengraph

Filter kaartattributen

/card/attributes This filter is called before a card is lay out. It allows to modify card attributes like the number of columns or rows, content_background, overlay_background, content_color_scheme, overlay_color_scheme or class Argument Type Description $atts array Holds card attributes $card object Holds card layout (layers/blocks) definition [pastacode lang=”php” manual=”function%20prefix_card_attributes(%20%24atts%2C%20%24card%20)%20%7B%0A%0A%09%2F%2F%20We%20get%20post%20in%20the%20custom%20loop%20of%20the%20plugin.%20%0A%09%24post%20%3D%20wpgb_get_post()%3B%0A%0A%09%2F%2F%20If%20current%20post%20ID%20is%20equal%20to%201%2C%20change%20number%20of%20rows%2Fcolumns.%20%0A%09if%20(%201%20%3D%3D%3D%20%24post-%3EID%20)%20%7B%20%0A%0A%09%09%24atts%5B’rows’%5D%20%3D%201%3B%0A%09%09%24atts%5B’columns’%5D%20%3D%202%3B%0A%09%0A%09%7D%0A%0A%09return%20%24atts%3B%0A%0A%7D%0A%0Aadd_filter(%20’wp_grid_builder%2Fcard%2Fattributes’%2C%20’prefix_card_attributes’%2C%2010%2C%202%20)%3B” message=”” highlight=”” provider=”manual”/]

Banner Opengraph

Filter zoekquery-argumenten voor facetten

/facet/search_query_args This filter is called before the search facet query object ids (posts, terms, users). It allows to modifies the search query arguments made by WP_Query, WP_Term_Query or WP_User_Query Argument Type Description $query array Holds search query args $facet array Holds facet settings [pastacode lang=”php” manual=”function%20prefix_search_query_args(%20%24query_args%2C%20%24facet%20)%20%7B%0A%0A%0A%09%2F%2F%20We%20exclude%20post%20IDs%20from%20search%20if%20facet%20ID%20is%20equal%20to%201.%0A%09if%20(%201%20%3D%3D%3D%20%24facet%5B’id’%5D%20)%20%7B%0A%09%09%24query_args%5B’post__not_in’%5D%20%3D%20%5B%201%2C%202%2C%203%2C%204%20%5D%3B%0A%09%7D%0A%09%0A%09return%20%24query_args%3B%0A%09%0A%7D%0A%0Aadd_filter(%20’wp_grid_builder%2Ffacet%2Fsearch_query_args’%2C%20’prefix_search_query_args’%2C%2010%2C%202%20)%3B” message=”” highlight=”” provider=”manual”/]