public function maybeAddRatingPrompt( $activity, $config_path ) {
		$added = false;

		$configs = $this->getActivityConfigs( $activity, $config_path );

		if ( isset( $configs['threshold'] ) && $this->getActivityCount( $activity ) >= $configs['threshold'] ) {
			$rating_prompt = new \Boldgrid\Library\Library\RatingPrompt();
			$added = $rating_prompt->addPrompt( $configs['prompt'] );
		}

		return $added;
	}
public function maybeAddRatingPrompt( $activity, $config_path ) {
		$added = false;

		$configs = $this->getActivityConfigs( $activity, $config_path );

		if ( isset( $configs['threshold'] ) && $this->getActivityCount( $activity ) >= $configs['threshold'] ) {
			$rating_prompt = new \Boldgrid\Library\Library\RatingPrompt();
			$added = $rating_prompt->addPrompt( $configs['prompt'] );
		}

		return $added;
	}
public function maybeAddRatingPrompt ( $ activity , $ config_path ) { $ added = false ; $ configs = $ this -> getActivityConfigs ( $ activity , $ config_path ) ; if ( isset ( $ configs [ 'threshold' ] ) && $ this -> getActivityCount ( $ activity ) >= $ configs [ 'threshold' ] ) { $ rating_prompt = new \ Boldgrid \ Library \ Library \ RatingPrompt ( ) ; $ added = $ rating_prompt -> addPrompt ( $ configs [ 'prompt' ] ) ; } return $ added ; }
Maybe add a rating prompt for an activity.

@since 2.7.7

@param  string $activity    The name of an activity
@param  string $config_path The path to our plugin's rating prompt configs.
@return bool                Whether or not we added a rating prompt.
Maybe add a rating prompt for an activity .