Category: role

Wordpress Expert

Wordpress Expert

web developer at WPLAB
Website development like the art
Wordpress Expert

Latest posts by Wordpress Expert (see all)

Simply paste this code into your function.php file. Edit lines 5 and 6 at your convenience. function wps_change_role_name() { global $wp_roles; if ( ! isset( $wp_roles ) ) $wp_roles = new WP_Roles(); $wp_roles->roles[‘contributor’][‘name’] = ‘Owner’; $wp_roles->role_names[‘contributor’] = ‘Owner’; } add_action(‘init’, ‘wps_change_role_name’); Thanks to Kevin Chard for the tip!! The post WordPress tip: Modify any role […]

Rating
Wordpress Expert

Wordpress Expert

web developer at WPLAB
Website development like the art
Wordpress Expert

Latest posts by Wordpress Expert (see all)

Simply paste this code into your function.php file. Edit lines 5 and 6 at your convenience. Rating

Rating
Wordpress Expert

Wordpress Expert

web developer at WPLAB
Website development like the art
Wordpress Expert

Latest posts by Wordpress Expert (see all)

Just run the following query on your WordPress database to delete comments with nastyspamurl as url. Don’t forget to replace the table prefix wp_ if your database is using another prefix.And of course, create a backup of your database before running the query! Rating

Rating