Skip to content

Commit

Permalink
FEE: Remove 'Read More' block from 'Add a Block' toolbar.
Browse files Browse the repository at this point in the history
See #10.
  • Loading branch information
r-a-y committed Oct 7, 2015
1 parent bae962c commit bbad97f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions includes/class-cacsp-fee.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,15 @@ function ajax_post() {
function wp_enqueue_scripts() {
global $post;

// Remove 'Read More' button from 'Add a Block' toolbar
add_filter( 'fee_tinymce_blocks', create_function( '$retval', '
$key = array_search( "wp_more", $retval );
if ( false !== $key ) {
unset( $retval[$key] );
}
return $retval;
' ) );

// do what FEE does
parent::wp_enqueue_scripts();

Expand Down

0 comments on commit bbad97f

Please sign in to comment.