RestroPress

⌘K
  1. Home
  2. Docs
  3. RestroPress
  4. Developer Docs
  5. Filters
  6. rpress_button_styles

rpress_button_styles

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 );

How can we help?