'' . str_replace( '%s', $post_type_labels->singular_name, /* translators: %s: Custom post type singular label. */ esc_html__( 'Previous %s', 'michelle' ) ) . ' %title', 'next_text' => '' . str_replace( '%s', $post_type_labels->singular_name, /* translators: %s: Custom post type singular label. */ esc_html__( 'Next %s', 'michelle' ) ) . ' %title', ); if ( is_attachment() ) { $args = array( 'prev_text' => '' . esc_html__( 'Published in', 'michelle' ) . ' %title', ); } // Output echo str_replace( // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ' role="navigation"', '', get_the_post_navigation( /** * Filters get_the_post_navigation() args. * * @link https://developer.wordpress.org/reference/functions/get_the_post_navigation/ * * @since 1.0.0 * * @param array $args */ (array) apply_filters( 'michelle/entry/navigation/args', $args ) ) ); } // /navigation }