If you want to change a certain text or a word in theme or plugin and don’t want to edit the theme or plugin files then you can use the following snippet. Place it in functions.php of theme

function start_modify_html() {

ob_start();
}

function end_modify_html() {
$html = ob_get_clean();
$html = str_replace( '<span class="tour-head">From</span>', '<span class="tour-head">Only</span>', $html );
echo $html;
}

add_action( 'wp_head', 'start_modify_html' );
add_action( 'wp_footer', 'end_modify_html' );

Above code will change text “From” to “Only”. I have added the html element span and classes etc within it to make sure only the text under that element get replaced. If we don’t use that surrounding html then every “From” on the page will be replaced with “Only” which may not be ideal in most cases.