How to Custom Pagination For Custom Post in WordPress?

  There are very simple steps for Pagination for any type of Post in WordPress by Shortcode with Ajax.  Write this below code in you active WordPress theme’s funcntion.php file. ie: wp-contentthemestwentytwentyfunctions.php  Put this shortcode […]

Read More

The best way to detect a mobile device

<html><head><script src=”https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js”></script><script>var isMobile = false;if( /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ) { // some code write for mobile device… isMobile = true; }else{ isMobile = false; }</script></head><body><div> <center><h1 […]

Read More

How to disable automatic updates in wordpress?

Write below code in current WordPress themes in function.php /wp-content/themes/twentytwenty/functions.php/* Disable Automatic Updates in WordPress */function remove_core_updates(){ global $wp_version;return(object) array(‘last_checked’=> time(),’version_checked’=> $wp_version,);}add_filter(‘pre_site_transient_update_core’,’remove_core_updates’);add_filter(‘pre_site_transient_update_plugins’,’remove_core_updates’);add_filter(‘pre_site_transient_update_themes’,’remove_core_updates’);/* .Disable Automatic Updates […]

Read More

How to create and manage log file in php?

Create and manage crud operation log data PHP <?phpfunction crud_log($action = ”,$message = ”,$array_data = array()){    global $handle_crud_log;    date_default_timezone_set(“Australia/Sydney”); //Ex. set australia/sydney timezone        $crud_log_dir […]

Read More