Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: replace_editor

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
303                               $post_id = 0;
304                          }
305
306                          if ( $post_id ) {
307                               $post = get_post( $post_id );
308                               if ( $post ) {
309                                    $post_type = $post->post_type;
310
311                                    /** This filter is documented in wp-admin/post.php */
312                                    $replace_editor = apply_filters( 'replace_editor', false, $post );
313
314                                    if ( ! $replace_editor ) {
315                                         $is_block_editor = use_block_editor_for_post( $post );
316                                    }
317                               }
318                          }
319                          break;
320                     case 'edit-tags':
321                     case 'term':