llms_get_loop_list_classes()
Get classes to add to the loop wrapper based on the queried object Used in templates/loop/loop-start.php
Return Return
(string)
Source Source
File: includes/functions/llms.functions.templates.loop.php
* @version 3.14.0 */ function llms_get_loop_list_classes() { $classes = array(); $obj = get_queried_object(); if ( $obj && $obj->name ) { $classes[] = 'llms-' . str_replace( 'llms_', '', $obj->name ) . '-list'; } $classes[] = sprintf( 'cols-%d', llms_get_loop_columns() ); return ' ' . implode( ' ', apply_filters( 'llms_get_loop_list_classes', $classes ) );
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |