beyondwords_settings_player_styles

Filters the player styles – the "Player style" <select> options presented on the plugin settings page and post edit screens.

Parameters

$styles array

Associative array of player styles.


Example

Remove "Small" from the "Player style" select options to prevent editors from selecting it on the post edit screens.

function my_beyondwords_settings_player_styles( $styles ) {
  if ( array_key_exists( 'small', $styles ) ) {
    unset( $styles['small'] );  
  }

  return $styles;
}
add_filter( 'beyondwords_settings_player_styles', 'my_beyondwords_settings_player_styles' );

Changelog

VersionDescription

4.3.0

Deprecatebeyondwords_player_styles for beyondwords_settings_player_styles.

4.1.0

Introduced.

Last updated