Remove Hestia footer link

Our file is that: wp-content/themes/hestia/inc/views/main/class-hestia-footer.php Find this: public function bottom_footer_content Update $hestia_general_credits variable like that: $hestia_general_credits = get_theme_mod( ‘hestia_general_credits’, sprintf( /* translators: %1$s is Theme Name, %2$s is WordPress */ esc_html__( ‘%2$s’, ‘Nixarsoft’ ), esc_html__( ‘Nixarsoft’, ‘Nixarsoft’ ), /* translators: %1$s is URL, %2$s is WordPress */ sprintf( ‘<a href=”%1$s” Devamı…

Convert print_r result to JSON

As you know json_encode is encoding only array or public properties of an object. But print_r can expose the protected and private properties in an object. Sometimes we need to these hidden properties. For this purpose we can convert print_r result to JSON result. Here is the function we need: if (!function_exists(‘pr2json’)) Devamı…