• Resolved icandywebs

    (@icandywebs)


    Hi,

    I am trying to write a custom filter but I think due to my inexperience, it isn’t working =(. After reading your documentation on actions and filters (https://www.download-monitor.com/kb/action-and-filter-reference/), I am a bit unsure of what to do. Any assistance you or anyone could provide would be greatly appreciated.

    function dlm_downloads_list_bootstrap_start( $args ) {
    
    	$args = '<div class="container-fluid">';
    	return $args;
    
    }
    add_filter('dlm_widget_downloads_list_start', 'dlm_downloads_list_bootstrap_start');
    
    function dlm_downloads_list_bootstrap_end( $args ) {
    
    	$args = '</div>';
    	return $args;
    
    }
    add_filter( 'dlm_widget_downloads_list_end', 'dlm_downloads_list_bootstrap_end' );

    https://wordpress.org/plugins/download-monitor/

Viewing 1 replies (of 1 total)
  • Plugin Contributor Barry Kooij

    (@barrykooij)

    Hey,

    If I remember correctly we’ve had a chat about this via email. To anyone who’s reading this, the issue here was that filters were used that change the widget output and the user was trying the modify the shortcode.

    Kind Regards,
    Barry Kooij

Viewing 1 replies (of 1 total)

The topic ‘Download List Filter’ is closed to new replies.