if ( ! function_exists( 'str_replace_last' ) ) : /** * A function similar to str_replace except it only replaces the very * last occurrence of the $search string. * * @since 1.0.0 * * @param string $search * @param string $replace * @param string $subject * @return string */ function str_replace_last( $search, $replace, $subject ) { // Ensure subject is always a string (PHP 8.1 safe) $subject = (string) $subject; $pos = strrpos( $subject, $search ); if ( $pos !== false ) { return substr_replace( $subject, $replace, $pos, strlen( $search ) ); } return $subject; } endif;
Fatal error: Uncaught Error: Call to undefined function thechosenone_add_smart_action() in /home/sealnlock/public_html/wp-content/themes/the-chosen-one/core/assets.php:43 Stack trace: #0 /home/sealnlock/public_html/wp-content/themes/the-chosen-one/functions.php(14): require_once() #1 /home/sealnlock/public_html/wp-settings.php(710): include('/home/sealnlock...') #2 /home/sealnlock/public_html/wp-config.php(87): require_once('/home/sealnlock...') #3 /home/sealnlock/public_html/wp-load.php(50): require_once('/home/sealnlock...') #4 /home/sealnlock/public_html/wp-blog-header.php(13): require_once('/home/sealnlock...') #5 /home/sealnlock/public_html/index.php(17): require('/home/sealnlock...') #6 {main} thrown in /home/sealnlock/public_html/wp-content/themes/the-chosen-one/core/assets.php on line 43

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the woocommerce domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/sealnlock/public_html/wp-includes/functions.php on line 6131