at path:
ROOT
/
wp-content
/
themes
/
understrap
/
inc
/
editor.php
run:
R
W
Run
block-editor.php
1.98 KB
2026-02-09 12:38:27
R
W
Run
Delete
Rename
class-wp-bootstrap-navwalker.php
20.65 KB
2026-02-09 12:38:27
R
W
Run
Delete
Rename
custom-comments.php
3.16 KB
2026-02-09 12:38:27
R
W
Run
Delete
Rename
custom-header.php
1.66 KB
2026-02-09 12:38:27
R
W
Run
Delete
Rename
customizer.php
8.68 KB
2026-02-09 12:38:27
R
W
Run
Delete
Rename
deprecated.php
3.12 KB
2026-02-09 12:38:27
R
W
Run
Delete
Rename
editor-color-palette.json
298 By
2026-02-09 12:38:27
R
W
Run
Delete
Rename
editor.php
2.81 KB
2026-02-09 12:38:27
R
W
Run
Delete
Rename
enqueue.php
1.5 KB
2026-02-09 12:38:27
R
W
Run
Delete
Rename
extras.php
8.3 KB
2026-02-09 12:38:27
R
W
Run
Delete
Rename
hooks.php
1.52 KB
2026-02-09 12:38:27
R
W
Run
Delete
Rename
jetpack.php
1.74 KB
2026-02-09 12:38:27
R
W
Run
Delete
Rename
pagination.php
3.59 KB
2026-02-09 12:38:27
R
W
Run
Delete
Rename
setup.php
2.77 KB
2026-02-09 12:38:27
R
W
Run
Delete
Rename
style-wpcom.css
125 By
2026-02-09 12:38:27
R
W
Run
Delete
Rename
template-tags.php
8.31 KB
2026-02-09 12:38:27
R
W
Run
Delete
Rename
theme-settings.php
1.26 KB
2026-02-09 12:38:27
R
W
Run
Delete
Rename
widgets.php
6.1 KB
2026-02-09 12:38:27
R
W
Run
Delete
Rename
woocommerce.php
5.62 KB
2026-02-09 12:38:27
R
W
Run
Delete
Rename
wpcom.php
1.12 KB
2026-02-09 12:38:27
R
W
Run
Delete
Rename
error_log
up
📄
editor.php
Save
<?php /** * Understrap modify editor * * @package Understrap */ // Exit if accessed directly. defined( 'ABSPATH' ) || exit; add_action( 'admin_init', 'understrap_wpdocs_theme_add_editor_styles' ); if ( ! function_exists( 'understrap_wpdocs_theme_add_editor_styles' ) ) { /** * Registers an editor stylesheet for the theme. */ function understrap_wpdocs_theme_add_editor_styles() { add_editor_style( 'css/custom-editor-style.min.css' ); } } add_filter( 'mce_buttons_2', 'understrap_tiny_mce_style_formats' ); if ( ! function_exists( 'understrap_tiny_mce_style_formats' ) ) { /** * Reveals TinyMCE's hidden Style dropdown. * * @param array $buttons Array of Tiny MCE's button ids. * @return array */ function understrap_tiny_mce_style_formats( $buttons ) { array_unshift( $buttons, 'styleselect' ); return $buttons; } } add_filter( 'tiny_mce_before_init', 'understrap_tiny_mce_before_init' ); if ( ! function_exists( 'understrap_tiny_mce_before_init' ) ) { /** * Adds style options to TinyMCE's Style dropdown. * * @param array $settings TinyMCE settings array. * @return array */ function understrap_tiny_mce_before_init( $settings ) { $style_formats = array( array( 'title' => __( 'Lead Paragraph', 'understrap' ), 'selector' => 'p', 'classes' => 'lead', 'wrapper' => true, ), array( 'title' => _x( 'Small', 'Font size name', 'understrap' ), 'inline' => 'small', ), array( 'title' => __( 'Blockquote', 'understrap' ), 'block' => 'blockquote', 'classes' => 'blockquote', 'wrapper' => true, ), array( 'title' => __( 'Blockquote Footer', 'understrap' ), 'block' => 'footer', 'classes' => 'blockquote-footer', 'wrapper' => true, ), array( 'title' => __( 'Cite', 'understrap' ), 'inline' => 'cite', ), ); if ( isset( $settings['style_formats'] ) ) { $orig_style_formats = json_decode( $settings['style_formats'], true ); $style_formats = array_merge( $orig_style_formats, $style_formats ); } $settings['style_formats'] = wp_json_encode( $style_formats ); return $settings; } } add_filter( 'mce_buttons', 'understrap_tiny_mce_blockquote_button' ); if ( ! function_exists( 'understrap_tiny_mce_blockquote_button' ) ) { /** * Removes the blockquote button from the TinyMCE toolbar. * * We provide the blockquote via the style formats. Using the style formats * blockquote receives the proper Bootstrap classes. * * @see understrap_tiny_mce_before_init() * * @param array $buttons TinyMCE buttons array. * @return array TinyMCE buttons array without the blockquote button. */ function understrap_tiny_mce_blockquote_button( $buttons ) { foreach ( $buttons as $key => $button ) { if ( 'blockquote' === $button ) { unset( $buttons[ $key ] ); } } return $buttons; } }