Title editing LOCK

I want stop users to edit TITLE of their listings after published.

because when users (vendors) edit the listing title, the URL address is changed and it’s effects on google seo results and website shows 404 or not found page

Would you please send simple snippet to fix this issue and stop users to access title after they’ve publishing the list.

Please try this PHP code snippet

add_filter(
	'hivepress/v1/forms/listing_update',
	function($args){
		if('listing_edit_page' !== hivepress()->router->get_current_route_name()){
			return $args;
		}
		
		$args['fields']['title']['readonly'] = true;
		
		return $args;
	},
	1000
);

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.