This is my code:
if ( ! function_exists( 'actualizar_rol' ) ) {
function actualizar_rol(int $user_id) {
list($usuario, $dominio) = explode('@', $args['user_email'] );
if ($usuario == 'marcelo.herrera') {
wp_update_user(
[
'ID' => $user_id,
'role' => 'rrhh',
]
);
}
}
add_action( 'rtcamp.google_user_created', 'actualizar_rol', 10, 2 );
}
What am I doing wrong?`
]]>I would like to automatically limit who can post in some categories but still want everyone to be able to read the posts from those categories.
]]>Best regards
Tomas
And, if so, can this be done with custom post types as well as normal posts?
For example we have many posts that are for reviews for different web hosting services.
Thanks for your help!
]]>I expect to support several organizations, departments and topical areas which require complex multiple conditions in order to assign the appropriate Ticket Agent.
My concern is there may be an arbitrary limit on the number of rules which may be created. If so, I may need to streamline my internal procedures for ticket assingment.
If there is no limit, then I would have no concerns in this area.
]]>I know how to use the Assign Agent Rules specified in the Settings. However, there may be circumstances where I need to assign a different Agent to a Ticket or to assign an Agent if the Assign Agent Rules did not do so.
]]>