public static function register_model_event( $event, $callback, $priority = 10, $accepted_args = 3 ) {

		if ( isset( static::$_event_dispatcher ) ) {
			$event = static::table()->get_slug() . ".$event";

			static::$_event_dispatcher->add_listener( $event, $callback, $priority, $accepted_args );
		}
	}
public static function register_model_event( $event, $callback, $priority = 10, $accepted_args = 3 ) {

		if ( isset( static::$_event_dispatcher ) ) {
			$event = static::table()->get_slug() . ".$event";

			static::$_event_dispatcher->add_listener( $event, $callback, $priority, $accepted_args );
		}
	}
public static function register_model_event ( $ event , $ callback , $ priority = 10 , $ accepted_args = 3 ) { if ( isset ( static :: $ _event_dispatcher ) ) { $ event = static :: table ( ) -> get_slug ( ) . ".$event" ; static :: $ _event_dispatcher -> add_listener ( $ event , $ callback , $ priority , $ accepted_args ) ; } }
Register a model event listener.

@since 2.0

@param string   $event
@param callable $callback
@param int      $priority
@param int      $accepted_args
Register a model event listener .