function count_users_wp() { //Get total no. of users count global $wpdb; $users_count = $wpdb->get_var("SELECT COUNT(ID) FROM {$wpdb->users}"); return $users_count; } function limit_users_register() { $count = apply_filters('limit_user_count',3); $users = count_users_wp(); if ($users >= $count) { //Check if total users exceeds update_option('users_can_register',0); //Disable registration }else{ update_option('users_can_register',2); //Enable registration } } add_action('user_register','limit_users_register'); function limit_user_register($option) { remove_filter('pre_option_users_can_register','limit_user_register'); $reg = get_option('users_can_register'); if (0 === $reg) { return 0; //break } $count = apply_filters('limit_user_count',50); $users = count_users_wp(); if ($users >= $count) { update_option('users_can_register',0); //Disable registration return 0; } else { update_option('users_can_register',1); //proceed to registration return $option; } } add_filter('pre_option_users_can_register','limit_user_register');

Equipment Gun Kelly

Picture: Screengrab/Instagram/Device Gun Kelly

Equipment Gun Kelly walked the AMAs pink carpet with a incredibly distinctive human being by his facet on Sunday.

The star’s 12-12 months-aged daughter Casie built an physical appearance at the award show where Kelly walked away with the trophy for Favorite Rock Artist.

Dressed in black, the pair posed for cameras forward of the award clearly show held in Los Angeles.

Proudly displaying off images from the night, Kelly shared a carousel of photographs on Instagram, captioning it: “tWINning.”

In accordance to US Weekly, the star shares Casie with ex Emma Cannon.

Read More

New Mexico authorities explained Wednesday they have recovered a “lead projectile” thought to have been fired from the gun made use of by Alec Baldwin in the lethal film-established capturing.

Investigators discussed their first findings in the taking pictures in which actor Alec Baldwin fired a gun that killed the movie’s cinematographer, Halyna Hutchins, and wounded director Joel Souza.

Testing is getting finished to ascertain whether or not the “direct projectile” recovered from Souza’s shoulder was fired from the gun — a prolonged Colt revolver — used by Baldwin. Two other guns seized incorporate a solitary-action revolver that may well

Read More