Every user vendor and css fixtures

To whom it may concern,

In the following we’ll talk about TaskHive.

Our team is looking for the opportunity to make every user, doesn’t matters if he’s a vendor or not, able to post request and bid on them / accept offers.

Also we want to give the “post a listing” button the functionality of the “post a request” button and delete the original “post a request” button.

Best wishes

Jan Heimann

  1. Please try this PHP snippet
add_action(
	'hivepress/v1/models/user/register',
	function( $user_id ) {
		$user = HivePress\Models\User::query()->get_by_id( $user_id );

		( new HivePress\Models\Vendor() )->fill(
			[
				'name'   => $user->get_display_name(),
				'slug'   => $user->get_username(),
				'status' => 'publish',
			]
		)->save( [ 'name', 'slug', 'status' ] );
	}
);
  1. Unfortunately, there’s no simple code snippet - this requires advanced customizations via a child theme and customizing them Customizing Templates I HivePress Developer Docs - YouTube

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