Introduction

  Edit This Page

Actions

Descriptions


This action fire just before Gallery widget content start rendering.

add_action( 'rtmedia_before_gallery_widget_content', 'rtm_before_gallery_widget_content', 10 );

function rtm_before_gallery_widget_content () {
     echo '<div style="background-color : rgba(198, 198, 198, 0.3);">';
}

This action fire just after Gallery widget content finished rendering.

add_action( 'rtmedia_after_gallery_widget_content', 'rtm_after_gallery_widget_content', 10 );

function rtm_after_gallery_widget_content () {
    echo '</div>';
}

This action fire just before a Media in gallery widget start rendering.

add_action( 'rtmedia_gallery_widget_before_media', 'rtm_gallery_widget_before_media', 10, 1 );

function rtm_gallery_widget_before_media ( $rt_media_gallery ) {
     echo '<div style="border : 2px solid grey;">';
}

This action fire just after a Media in gallery widget finished rendering.

add_action( 'rtmedia_gallery_widget_after_media', 'rtm_gallery_widget_after_media', 10, 1 );

function rtm_gallery_widget_after_media ( $rt_media_gallery ) {
     echo '</div>';
}