Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: site_editor_no_javascript_message

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
167           /**
168            * Filters the message displayed in the site editor interface when JavaScript is
169            * not enabled in the browser.
170            *
171            * @since 6.3.0
172            *
173            * @param string  $message The message being displayed.
174            * @param WP_Post $post    The post being edited.
175            */
176           $message = apply_filters( 'site_editor_no_javascript_message', __( 'The site editor requires JavaScript. Please enable JavaScript in your browser settings.' ), $post );
177           wp_admin_notice(
178                $message,
179                array(
180                     'type'               => 'error',
181                     'additional_classes' => array( 'hide-if-js' ),
182                )
183           );
184           ?>
185      </div>