Skip to content

Niraeth Posts

PHP Pretty Dump Function

PHP pretty dump function After using this, you will never go back to var_dump or print_r anymore. That alone says a thousand words. public static function pretty_dump($array) { echo ‘<pre>’ . var_export($array, true) . ‘</pre>’; }  

Enjoyed the content ? Share it with your friends !

WordPress Category List by Alphabet Code Without Plugin

WordPress Category List by Alphabet Code Without Plugin In your functions.php, insert the code below. In the page or post or wherever you want, just use the shortcode [sorted_category_list] and the sorted category list will appear 🙂 add_shortcode(‘sorted_category_list’, ‘sorted_category_list_shortcode’); function…

Enjoyed the content ? Share it with your friends !