Filters

Descriptions

rtmedia_si_fb_button


The filter is used to change the facebook import button.

/**
 * Filters the facebook import button. 
 * 
 * @param  string $button_html Button for facebook import. 
 * @return string              Updated button for facebook import 
*/
function rtmc_si_fb_button( $button_html ) { 
    return '<div class="rtm-sc-import-btn-container"><button class="rtm-sc-import-btn">' . __( 'Import from Facebook', 'rtmedia' ) . '</button></div>';
}
add_filter( 'rtmedia_si_fb_button', 'rtmc_si_fb_button' );

rtmedia_si_insta_button


The filter is used to change the instagram import button.

/**
 * Filters the Instagram import button.
 * 
 * @param  string $button_html Button for instagram import.
 * @return string              Updated button for Instagram import
*/
function rtmc_si_insta_button( $button_html ) { 
    return '<div class="rtm-sc-import-btn-container"><button class="rtm-sc-import-frm-insta">' . __( 'Import from Instagram', 'rtmedia' ) . '</button></div>';
}
add_filter( 'rtmedia_si_insta_button', 'rtmc_si_insta_button' );