rpress_button_styles

Author: RestroPress 18 views

The rpress_button_styles filter is applied to the get button style returns an array of button styles of RestroPress. It receives one parameters. New button style can be added through this filter.

apply_filters( ‘rpress_button_styles’, $styles );

function rpress_button_styles_callback( $style ) {
    $styles = array(
      'color' =>__( 'Color', 'restropress' ),
   );
return $styles;
}
add_filter( 'rpress_button_styles’, 'rpress_button_styles_callback', 10, 1 );