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

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”/]

Banner Opengraph

Filterraster inline script

/grid/inline_script This filter is called once the inline JavaScript of all grids in a page is generated. It allows to change the inline script or to completely remove it if you want more control or initialize grids from your own script. Argument Type Description $script string Inline JavaScript of grids [pastacode lang=”php” manual=”function%20prefix_inline_script(%20%24script%20)%20%7B%0A%09%2F%2F%20We%20prevent%20initialization%20of%20grids%20in%20page.%0A%09return%20”%3B%0A%0A%7D%0A%0Aadd_filter(%20’wp_grid_builder%2Fgrid%2Finline_script’%2C%20’prefix_inline_script’%2C%2010%2C%201%20)%3B” message=”” highlight=””…

Banner Opengraph

Filter cron max uitvoeringstijd

/ cron / max_execution_time Dit filter wordt elke keer aangeroepen dat de indexer een cron-proces start. Het laat toe om de max_execution_time (in seconden) van de cron indexer te wijzigen. Het cron-systeem van de plug-in zal tijdens het indexeren regelmatig controleren of de server max_execution_time niet wordt bereikt met een bepaalde snelheid (80%). Het voorkomt dat de indexer wordt verbroken als dit ...

Banner Opengraph

Filter indexer rijen

/ indexer / row Dit filter wordt aangeroepen voordat een rij in de indextabel wordt ingevoegd. Het maakt het mogelijk om eigenschappen van een rij te wijzigen, zoals de facet_waarde en facet_name. Dit filter mag niet worden gebruikt om een facetwaarde op te vragen, maar gewoon om deze te wijzigen (zoals het opmaken van een datum). Om rijen en facetwaarden in te stellen ...

Banner Opengraph

Filter facet html

/facet/html This filter is called before to display a facet on render or refresh. It allows to modifies the output of facets. Argument Type Description $html string Facet HTML markup $facet_id integer Facet id [pastacode lang=”php” manual=”function%20prefix_facet_html(%20%24html%2C%20%24facet_id%20)%20%7B%0A%0A%09%2F%2F%20If%20it%20matches%20facet%20id%201%2C%20we%20replace%20string%20in%20facet%20HTML.%20%0A%09if%20(%201%20%3D%3D%3D%20%24facet_id%20)%20%7B%20%24html%20%3D%20str_replace(%20’Facet%20string’%2C%20’Another%20string’%2C%20%24html%20)%3B%0A%0A%09%7D%0A%0A%09return%20%24html%3B%0A%0A%7D%0A%0Aadd_filter(%20’wp_grid_builder%2Ffacet%2Fhtml’%2C%20’prefix_facet_html’%2C%2010%2C%202%20)%3B” message=”” highlight=”” provider=”manual”/]

Banner Opengraph

Filter het object op het raster

/grid/the_object This filter is called when an object (post, term or user) has been setup in the loop after the WP_Query, WP_Term_Query or WP_User_Query It allows to modifies object properties like the title, excerpt, etc… Argument Type Description $object object Holds current object data in the loop (title, excerpt, etc…) [pastacode lang=”php” manual=”function%20prefix_object_data(%20%24object%20)%20%7B%0A%0A%09%2F%2F%20We%20get%20attachment%20object%20properties%20from%20a%20custom%20field.%20%0A%09%24attachment%20%3D%20get_post_meta(%20%24object-%3EID%2C%20’my_custom_attachment’%2C%20true%20)%3B%0A%09%09%0A%09%2F%2F%20We%20override%20post%20thumbnail%20(custom%20property%20of%20the%20plugin).%20%0A%09%24object-%3Epost_thumbnail%20%3D%20%5B%0A%09’alt’%20%3D%3E%20%24attachment-%3Ealt%2C%0A%09’title’%20%3D%3E%20%24attachment-%3Etitle%2C%0A%09’caption’%20%3D%3E%20%24attachment-%3Ecaption%2C%0A%09’description’%20%3D%3E%20%24attachment-%3Edescription%2C%20%0A%09’mime_type’%20%3D%3E%20’image’%2C%0A%09’sizes’%20%3D%3E%20%5B%20%0A%09%09’thumbnail’%20%3D%3E%20%5B%20%0A%09%09%09’url’%20%3D%3E%20%24attachment-%3Ethumbnail_url%2C%20%0A%09%09%09’width’%20%3D%3E%20%24attachment-%3Ethumbnail_width%2C%0A%09%09%09’height’%20%3D%3E%20%24attachment-%3Ethumbnail_height%2C%0A%09%09%09%5D%2C%0A%09%09’lightbox’%20%3D%3E%20%5B%0A%09%09%09’url’%20%3D%3E%20%24attachment-%3Elightbox_url%2C%0A%09%09%09%5D%2C%0A%09%09%5D%2C%0A%09%5D%3B%0A%09%0A%09return%20%24object%3B%0A%09%0A%7D%0A%0Aadd_filter(%20’wp_grid_builder%2Fgrid%2Fthe_object’%2C%20’prefix_object_data’%2C%2010%2C%201%20)” message=”” highlight=””…