public function getPluginPrompts( $plugin ) {
		$pluginPrompts = array();

		$prompts = $this->getPrompts();

		foreach ( $prompts as $prompt ) {
			if ( $prompt['plugin'] === $plugin ) {
				$pluginPrompts[] = $prompt;
			}
		}

		return $pluginPrompts;
	}
public function getPluginPrompts( $plugin ) {
		$pluginPrompts = array();

		$prompts = $this->getPrompts();

		foreach ( $prompts as $prompt ) {
			if ( $prompt['plugin'] === $plugin ) {
				$pluginPrompts[] = $prompt;
			}
		}

		return $pluginPrompts;
	}
public function getPluginPrompts ( $ plugin ) { $ pluginPrompts = array ( ) ; $ prompts = $ this -> getPrompts ( ) ; foreach ( $ prompts as $ prompt ) { if ( $ prompt [ 'plugin' ] === $ plugin ) { $ pluginPrompts [ ] = $ prompt ; } } return $ pluginPrompts ; }
Get all prompts for a plugin.

@since 2.7.7

@param  string $plugin The name of a plugin.
@return array
Get all prompts for a plugin .