Disable all update in wordpress
remove_action(‘load-update-core.php’, ‘wp_update_plugins’); add_filter(‘pre_site_transient_update_plugins’, ‘__return_null’); 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’);
[ read more ]WordPress subpages next and previous with count down
$pageid = get_the_ID(); $subpages = get_pages(array( 'post_type' => 'page', 'sort_column' => 'menu_order', 'order' => 'DESC', 'posts_per_page' => -1, 'child_of' => $post->post_parent, 'offset' >=0 )); $foundon = false; if(!empty($subpages) &&...
[ read more ]WordPress menu order change by pages order bootstrap menu
This code need to write in function.php /* Elk Menu */ function elk_wp_menus( $args = array() ) { $defaults = array('sort_column' => 'menu_order', 'menu_class' => 'menu', 'echo' => true,...
[ read more ]Web site Page speed depend on
Page speed depend on Quality of your host. Physical size of the site, generally due to images. Number and quality of the plugins used. Number of external scripts running...
[ read more ]How to make wordpress ajax form submite
<?php $url = admin_url(‘admin-ajax.php’); ?> <script> jQuery(document).ready(function(){ jQuery(“#submit”).click(function(){ var name = jQuery(“#dname”).val(); var email = jQuery(“#email”).val(); var phone = jQuery(“#phone”).val(); var message = jQuery(“#message”).val(); $(“#form”).find(‘#submit’).val(‘Working’); //var info = ‘dname:’...
[ read more ]Disable Plugin Update Notifications in wordpress
Insert the following code to the functions.php file of your active theme. It will remove the update notifications of all the installed plugins. remove_action('load-update-core.php','wp_update_plugins'); add_filter('pre_site_transient_update_plugins','__return_null'); To Disable all the...
[ read more ]WordPress chield Pages pagination with counter in parent page
<div class=”container”> <?php $ids = array(); $pages = get_pages(“child_of=”.$post->ID); if ($pages) { foreach ($pages as $page) { $ids = $page->ID; } } $paged = (get_query_var(‘paged’)) ? get_query_var(‘paged’) : 1;...
[ read more ]