post->ID ); $content = wptexturize( $post->post_content ); } if ( $apply_eligibility ) { if ( ! $toc_plus->is_eligible() ) { $proceed = false; } } else { $toc_plus->set_option( [ 'start' => 0 ] ); } if ( $proceed ) { $return = $toc_plus->extract_headings( $find, $replace, $content ); if ( $prefix_url ) { $return = str_replace( 'href="#', 'href="' . $prefix_url . '#', $return ); } } return $return; }